mirror of
https://github.com/Sosokker/ku-polls.git
synced 2025-12-18 13:04:05 +01:00
update admin.py field
This commit is contained in:
parent
a9eb3b6497
commit
63b0f6ee35
@ -13,8 +13,10 @@ class QuestionAdmin(admin.ModelAdmin):
|
||||
(None, {"fields": ["question_text"]}),
|
||||
("Published date", {"fields": ["pub_date"], "classes": ["collapse"]}),
|
||||
("End date", {"fields": ["end_date"], "classes": ["collapse"]}),
|
||||
("Short Description", {"fields": ["short_description"], "classes": ["collapse"]}),
|
||||
("Long Description", {"fields": ["long_description"], "classes": ["collapse"]}),
|
||||
]
|
||||
list_display = ["question_text", "pub_date", "end_date", "was_published_recently", "can_vote"]
|
||||
list_display = ["question_text", "pub_date", "end_date", "was_published_recently", "can_vote", "trending_score"]
|
||||
inlines = [ChoiceInline]
|
||||
list_filter = ["pub_date", "end_date"]
|
||||
search_fields = ["question_text"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user