fix: привязать пользователя к заявке на модерацию и вывести в админке
This commit is contained in:
1 parent
c681c724a5
commit
8cbf24bc40
4 files changed
+33
-2
No files matched your search
@@ -5,9 +5,12 @@ from .models import AuditLog, ModerationRequest
|
||||
|
||||
@admin.register(ModerationRequest)
|
||||
class ModerationRequestAdmin(admin.ModelAdmin):
|
||||
list_display = ('content_type', 'object_id', 'decision', 'moderator', 'created_at', 'decided_at')
|
||||
list_display = (
|
||||
'content_type', 'object_id', 'user', 'decision',
|
||||
'moderator', 'created_at', 'decided_at',
|
||||
)
|
||||
list_filter = ('decision', 'content_type')
|
||||
search_fields = ('comment',)
|
||||
search_fields = ('comment', 'user__username', 'user__full_name')
|
||||
|
||||
|
||||
@admin.register(AuditLog)
|
||||
|
||||
Reference in new issue
Block a user