mirror of
https://github.com/Sosokker/ku-polls.git
synced 2025-12-19 21:44:06 +01:00
Add end_date customizer to admin panel
This commit is contained in:
parent
32605720fc
commit
c54492c418
@ -12,8 +12,9 @@ class QuestionAdmin(admin.ModelAdmin):
|
||||
fieldsets = [
|
||||
(None, {"fields": ["question_text"]}),
|
||||
("Date information", {"fields": ["pub_date"], "classes": ["collapse"]}),
|
||||
("End date", {"fields": ["end_date"], "classes": ["collapse"]}),
|
||||
]
|
||||
list_display = ["question_text", "pub_date", "was_published_recently"]
|
||||
list_display = ["question_text", "pub_date", "end_date", "was_published_recently"]
|
||||
inlines = [ChoiceInline]
|
||||
list_filter = ["pub_date"]
|
||||
search_fields = ["question_text"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user