Ticket #1712: model-api.txt.diff
File model-api.txt.diff, 651 bytes (added by , 19 years ago) |
---|
-
docs/model-api.txt
978 978 Here's an example of how ``list_display`` and ``list_filter`` work (taken 979 979 from the ``auth.user`` model):: 980 980 981 list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff') ,982 list_filter = ('is_staff', 'is_superuser') ,981 list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff') 982 list_filter = ('is_staff', 'is_superuser') 983 983 984 984 The above code results in an admin that looks like this: 985 985