Ben Sturmfels
531a97a3c9
The directory nesting is unnecessary here and confusing to navigate. I've moved all apps to the project subdirectory, currently called "www", but soon to be renamed "conservancy". I've also moved manage.py to the top-level directory.
11 lines
287 B
Python
11 lines
287 B
Python
from django.contrib import admin
|
|
|
|
from .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)
|