Skip to content

Commit

Permalink
add filter on approved field on Post and Topic
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Dec 18, 2024
1 parent 3fce3db commit 4b1e38a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lacommunaute/forum_conversation/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def get_actions(self, request):
# the website inconsistent
return []

list_filter = BasePostAdmin.list_filter + ("approved",)


class PostInline(admin.StackedInline):
model = Post
Expand All @@ -30,7 +32,7 @@ class TopicAdmin(BaseTopicAdmin):
inlines = [
PostInline,
]
list_filter = BaseTopicAdmin.list_filter + ("type",)
list_filter = BaseTopicAdmin.list_filter + ("type", "approved")


class CertifiedPostAdmin(admin.ModelAdmin):
Expand Down

0 comments on commit 4b1e38a

Please sign in to comment.