from django.contrib import admin
from django.conf import settings
from uchicagohvz.game.models import *

# Register your models here.

admin.site.register(Game)

class PlayerAdmin(admin.ModelAdmin):
	list_filter = ('game__name', 'active', 'human', 'dorm', 'renting_gun', 'gun_returned')
	readonly_fields = ('points',)
	if not settings.DEBUG:
		readonly_fields += ('major',)
	search_fields = ('user__username', 'user__first_name', 'user__last_name', 'bite_code', 'major')

class KillAdmin(admin.ModelAdmin):
	list_filter = ('killer__game__name',)
	readonly_fields = ('parent',)

admin.site.register(Player, PlayerAdmin)
admin.site.register(Kill, KillAdmin)
admin.site.register(Award)
admin.site.register(HighValueTarget)
admin.site.register(HighValueDorm)
@@ -278,16 +278,25 @@
 eturned'
+, 'major'
 )%0A%09reado
@@ -462,25 +462,16 @@
 te_code'
-, 'major'
 )%0A%0Aclass

Add major to Player list filters in admin