Commit afa111ce authored by Ilya Simonov's avatar Ilya Simonov

remove add permitions for video admin

parent 00bd1f7d
...@@ -46,6 +46,9 @@ class VideoAdmin(admin.ModelAdmin): ...@@ -46,6 +46,9 @@ class VideoAdmin(admin.ModelAdmin):
list_filter = ('status',) list_filter = ('status',)
inlines = [TagInline] inlines = [TagInline]
def has_add_permission(self, request):
return False
def save_model(self, request, obj, form, change): def save_model(self, request, obj, form, change):
obj.creator = request.user obj.creator = request.user
super().save_model(request, obj, form, change) super().save_model(request, obj, form, change)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment