njpma/app/video/admin.py

17 lines
320 B
Python

from django.contrib import admin
from . import models
@admin.decorators.register(models.Film)
class FilmAdmin(admin.ModelAdmin):
list_display = (
'__str__',
'position',
'slug',
'public',
)
#@admin.decorators.register(models.Edit)
#class EditAdmin(admin.ModelAdmin):
# pass