We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c3bda6 commit 4a36f20Copy full SHA for 4a36f20
mysite/polls/admin.py
@@ -4,4 +4,9 @@
4
5
# Register your models here.
6
7
-admin.site.register(Question)
+
8
+class QuestionAdmin(admin.ModelAdmin):
9
+ fields = ["pub_date", "question_text"]
10
11
12
+admin.site.register(Question, QuestionAdmin)
0 commit comments