X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8559c95597de98e8f6c580e97224ed3ecc9dc5c0..d714d53a90d2b2d7c0142e050f2dff77c20d6c7c:/catalogue/admin.py diff --git a/catalogue/admin.py b/catalogue/admin.py index 2afc794be..03b72d918 100644 --- a/catalogue/admin.py +++ b/catalogue/admin.py @@ -1,8 +1,5 @@ # -*- coding: utf-8 -*- from django.contrib import admin -from django import forms -from django.utils.safestring import mark_safe -from django.utils.translation import ugettext_lazy as _ from newtagging.admin import TaggableModelAdmin from catalogue.models import Book, Tag @@ -17,8 +14,6 @@ class TagAdmin(admin.ModelAdmin): prepopulated_fields = {'slug': ('name',), 'sort_key': ('name',),} radio_fields = {'category': admin.HORIZONTAL} -admin.site.register(Tag, TagAdmin) - class BookAdmin(TaggableModelAdmin): tag_model = Tag @@ -29,5 +24,7 @@ class BookAdmin(TaggableModelAdmin): prepopulated_fields = {'slug': ('title',)} + +admin.site.register(Tag, TagAdmin) admin.site.register(Book, BookAdmin)