Opened 13 years ago

Closed 13 years ago

#12266 closed (worksforme)

tutorial02: Error in fieldset data structure

Reported by: roelschlaeger Owned by: nobody
Component: Uncategorized Version: 1.1
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Running '1.2 pre-alpha' on Windows


class PollAdmin(admin.ModelAdmin):
    fieldsets = [
        (None,               {'fields': ['question']}),
        ('Date information', {'fields': ['pub_date']}),
    ], PollAdmin)

didn't work, but

class PollAdmin(admin.ModelAdmin):

    fieldsets = [
        (None,                  {'fields': ('question',)}),
        ('Date Information',    {'fields': ('pub_date',)}),
    ], PollAdmin)


Change History (1)

comment:1 Changed 13 years ago by Karen Tracey

Resolution: worksforme
Status: newclosed

What exactly did "didn't work" look like? It works for me: I just tested it, on Windows, running recent trunk-level code, with cut-and-paste of the version you say "didn't work", and it appears to work fine.

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