Opened 11 years ago

Closed 11 years ago

#22600 closed Uncategorized (fixed)

small typo in tutorial part 2, v1.6

Reported by: jmr.git@… Owned by: nobody
Component: Documentation Version: 1.6
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

'pub date' should be 'pub_date' in the text below:

And speaking of forms with dozens of fields, you might want to split the form up into fieldsets:

from django.contrib import admin
from polls.models import Poll

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

admin.site.register(Poll, PollAdmin)

Change History (1)

comment:1 by anonymous, 11 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top