Ticket #1712: model-api.txt.diff

File model-api.txt.diff, 651 bytes (added by Malcolm Tredinnick <malcolm@…>, 19 years ago)

Syntax fix

  • docs/model-api.txt

     
    978978    Here's an example of how ``list_display`` and ``list_filter`` work (taken
    979979    from the ``auth.user`` model)::
    980980
    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')
    983983
    984984    The above code results in an admin that looks like this:
    985985
Back to Top