Skip to content

Commit 116ac7f

Browse files
committed
Reorganize the custom field order into fieldsets.
1 parent 4a36f20 commit 116ac7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mysite/polls/admin.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77

88
class QuestionAdmin(admin.ModelAdmin):
9-
fields = ["pub_date", "question_text"]
9+
fieldsets = [
10+
(None, {"fields": ["question_text"]}),
11+
("Date Information", {"fields": ["pub_date"]}),
12+
]
1013

1114

1215
admin.site.register(Question, QuestionAdmin)

0 commit comments

Comments
 (0)