Skip to content

Commit

Permalink
Add vote to csv export
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed May 3, 2024
1 parent 0c21371 commit a3051f4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions wcivf/apps/feedback/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
class FeedbackAdmin(admin.ModelAdmin):
change_list_template = "feedback/admin/change_list.html"

list_filter = ("found_useful",)
list_filter = ("found_useful", "vote")
list_display = (
"id",
"found_useful",
"sources",
"vote",
"comments",
"flagged_as_spam",
"created",
Expand Down Expand Up @@ -57,7 +57,12 @@ def export_feedback_with_comments(self, request):
Feedback.objects.all()
.exclude(comments="")
.order_by(
"found_useful", "sources", "flagged_as_spam", "-created", "id"
"found_useful",
"vote",
"sources",
"flagged_as_spam",
"-created",
"id",
)
)

Expand All @@ -73,6 +78,7 @@ def export(self, qs):
"flagged_as_spam",
"comments",
"found_useful",
"vote",
"sources",
"source_url",
]
Expand Down

0 comments on commit a3051f4

Please sign in to comment.