play with somort of permission management
This commit is contained in:
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user