X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f7833f76b5f9555b0d95d23d47fc886a3528a335..2b42a7314b63bed80a1561970ed0d1a065bce45f:/apps/lessons/admin.py diff --git a/apps/lessons/admin.py b/apps/lessons/admin.py new file mode 100644 index 000000000..813621f91 --- /dev/null +++ b/apps/lessons/admin.py @@ -0,0 +1,13 @@ +from django.contrib import admin +from django.utils.translation import ugettext_lazy as _ + +from lessons.models import Document + + +class DocumentAdmin(admin.ModelAdmin): + list_display = ('title', 'author', 'slideshare_id') + list_filter = ('author',) + search_fields = ('name', 'author',) + prepopulated_fields = {'slug': ('title',)} + +admin.site.register(Document, DocumentAdmin)