From 5e7401098734756927e6d6cf6da891bf26dcdb47 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Fri, 22 Aug 2008 14:19:46 +0200 Subject: [PATCH] Cleaned imports. --- catalogue/admin.py | 7 ++----- catalogue/urls.py | 3 --- newtagging/models.py | 1 - 3 files changed, 2 insertions(+), 9 deletions(-) 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 -- 2.20.1