Skip to content

Commit 4a36f20

Browse files
committed
Customize the order of the fields displayed for the Question admin page.
1 parent 2c3bda6 commit 4a36f20

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mysite/polls/admin.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@
44

55
# Register your models here.
66

7-
admin.site.register(Question)
7+
8+
class QuestionAdmin(admin.ModelAdmin):
9+
fields = ["pub_date", "question_text"]
10+
11+
12+
admin.site.register(Question, QuestionAdmin)

0 commit comments

Comments
 (0)