from django.contrib import admin

from trackmaniawars.models import War, WarMap, FightUs

class WarMapInlineAdmin(admin.TabularInline):
    model = WarMap

class WarAdmin(admin.ModelAdmin):
    list_display = ('team', 'opponent', 'datetime')
    search_fields = ('opponent', 'opponenttag', 'homepage', 'contact', 'server')
    model = War
    inlines = [WarMapInlineAdmin]
        
admin.site.register(War, WarAdmin)
admin.site.register(WarMap)
admin.site.register(FightUs)
@@ -25,16 +25,72 @@
 rt admin
+%0Afrom django.utils.translation import ugettext_lazy as _
 %0A%0Afrom t
@@ -205,16 +205,17 @@
 WarMap%0A%0A
+%0A
 class Wa
@@ -290,16 +290,40 @@
 atetime'
+, 'named_mode', 'status'
 )%0A    se
@@ -451,16 +451,132 @@
 in%5D%0A
-        
+%0A    def named_mode(self, model):%0A        return model.get_mode_display()%0A    named_mode.short_description = _(%22War Mode%22)%0A%0A
 %0Aadm

Improve admin list display for wars a bit (status is a nice to have)