Files @ 86ef51db5dff
Branch filter:

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

brett
Supporter page: Refactor JavaScript.

This isn't intended to have any functional change, it's just DRYing up
the code to simplify functional changes later.
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)