Code

Opened 9 years ago

Closed 9 years ago

#592 closed defect (invalid)

Error in tutorial 2

Reported by: pterk Owned by: jacob
Component: Documentation Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by adrian)

There's a comma too many in the example-code for adjusting the order. The last comma should go.

admin = meta.Admin(
    fields = (
        (None, {'fields': ('pub_date', 'question')}),
    ),
)

Attachments (1)

patch.592 (1.1 KB) - added by pterk 9 years ago.
Removes the comma's

Download all attachments as: .zip

Change History (2)

comment:1 Changed 9 years ago by adrian

  • Description modified (diff)
  • Resolution set to invalid
  • Status changed from new to closed

Looks OK to me -- Python allows a trailing comma like that.

Changed 9 years ago by pterk

Removes the comma's

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.