Opened 12 years ago
Closed 12 years ago
#22600 closed Uncategorized (fixed)
small typo in tutorial part 2, v1.6
| Reported by: | 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)
Note:
See TracTickets
for help on using tickets.