diff --git a/quiz/admin.py b/quiz/admin.py index f975f7a..953f04f 100644 --- a/quiz/admin.py +++ b/quiz/admin.py @@ -30,12 +30,12 @@ def get_queryset(self, request): def get_fields(self, request, obj=None): if not request.user.is_superuser and request.user.groups.filter(name='Editors').exists(): - return ['question', 'result', 'answer', 'hint', 'explanation', 'author_email',] + return ['question', 'result', 'answer', 'hint', 'explanation', 'state', 'difficulty', 'publish_time', 'socials_text', 'author_email', 'retraction_message'] return super().get_fields(request, obj) def get_readonly_fields(self, request, obj=None): if not request.user.is_superuser and request.user.groups.filter(name='Editors').exists(): - return ['author_email',] + return ['state', 'publish_time', 'socials_text', 'author_email', 'retraction_message'] return super().get_readonly_fields(request, obj) def view_on_site(self, obj):