Skip to content

Commit 4b63a8b

Browse files
committed
Remove dropdown menus from article/comment admin page [#282]
1 parent 8dc8262 commit 4b63a8b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

apps/core/admin.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,13 @@ class ArticleAdmin(MetaDataModelAdmin):
101101
'is_anonymous',
102102
'is_content_sexual',
103103
'is_content_social',
104+
'report_count',
105+
'hidden_at',
106+
)
107+
raw_id_fields = (
104108
'created_by',
105109
'parent_topic',
106110
'parent_board',
107-
'report_count',
108-
'hidden_at',
109111
)
110112
search_fields = (
111113
'title',
@@ -134,12 +136,13 @@ class CommentAdmin(MetaDataModelAdmin):
134136
'positive_vote_count',
135137
'negative_vote_count',
136138
'is_anonymous',
137-
'created_by',
138-
'parent_article',
139-
'parent_comment',
140139
'report_count',
141140
'hidden_at',
142141
)
142+
raw_id_fields = ('created_by',
143+
'parent_article',
144+
'parent_comment',
145+
)
143146
search_fields = (
144147
'content',
145148
'hidden_at',

0 commit comments

Comments
 (0)