Code

Opened 2 years ago

Closed 2 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:
Needs tests: Patch needs improvement:
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

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by aaugustin

  • Resolution set to fixed
  • Status changed from new to closed

In [17388]:

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.