play with somort of permission management

This commit is contained in:
Holger Sielaff
2024-07-04 14:05:55 +02:00
parent 030d3c8059
commit 7d53df6ea5
4 changed files with 42 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
from django.contrib import admin
from quiz.models import Quiz, Question
from lib.mixins import PermissionsAdminMixin
class QuizQuestionInlineAdmin(admin.StackedInline):
@@ -8,7 +9,7 @@ class QuizQuestionInlineAdmin(admin.StackedInline):
@admin.register(Quiz)
class QuizAdmin(admin.ModelAdmin):
class QuizAdmin(PermissionsAdminMixin, admin.ModelAdmin):
inlines = (QuizQuestionInlineAdmin,)
list_display = ('name', 'download_urls')
search_fields = (