Files @ 123eb7603cee
Branch filter:

Location: website/www/conservancy/apps/staff/admin.py

Bradley M. Kuhn
Use typical way of putting the category in a block.

Django is so frustrating as it's never clear about how things trickle
up and down through templates, so move the category to the top like
the others.
1
2
3
4
5
6
7
8
9
from django.contrib import admin
from conservancy.apps.staff.models import Person

class PersonAdmin(admin.ModelAdmin):
    list_display = ("username", "formal_name", "casual_name",
                    "currently_employed")
    list_filter = ["currently_employed"]

admin.site.register(Person, PersonAdmin)