Opened 13 years ago

Closed 13 years ago

#17575 closed Cleanup/optimization (fixed)

Python syntax error in example

Reported by: apelisse@… Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hello guys,
I noticed a very tiny mistake in the documentation at this URL: https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter

class UserAdminWithLookup(UserAdmin):

list_filter = ('groupsname')

The list_filter must be a tuple, so it misses a coma.

Thanks for all the goodwork (framework + documentation)

Cheers,
Antoine Pelisse

Change History (1)

comment:1 by Aymeric Augustin, 13 years ago

Resolution: fixed
Status: newclosed

In [17388]:

[1.3.X] Fixed #17575 -- Typo in an example of ModelAdmin.list_filter. Thanks apelisse AT gmail com for the report.

Note: See TracTickets for help on using tickets.
Back to Top