From: Marek Stępniowski Date: Fri, 22 Aug 2008 12:19:46 +0000 (+0200) Subject: Cleaned imports. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/5e7401098734756927e6d6cf6da891bf26dcdb47?ds=sidebyside Cleaned imports. --- 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) diff --git a/catalogue/urls.py b/catalogue/urls.py index fb20dd1f5..e56d82241 100644 --- a/catalogue/urls.py +++ b/catalogue/urls.py @@ -1,8 +1,5 @@ # -*- coding: utf-8 -*- -import os - from django.conf.urls.defaults import * -from django.views.generic.simple import redirect_to urlpatterns = patterns('catalogue.views', diff --git a/newtagging/models.py b/newtagging/models.py index def1beb8a..0c2b0e1f0 100644 --- a/newtagging/models.py +++ b/newtagging/models.py @@ -8,7 +8,6 @@ if not hasattr(__builtins__, 'set'): from django.contrib.contenttypes import generic from django.contrib.contenttypes.models import ContentType from django.db import connection, models -from django.db.models.query import QuerySet from django.utils.translation import ugettext_lazy as _ from django.db.models.base import ModelBase