]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/tag.py
#OSQA-610, the used_count of the firstly added tags is now updated properly. The...
[osqa.git] / forum / models / tag.py
index ce0d8de630e9fb067d9eef7761c3d7a795c4281d..5cbaf8a155a3288943f03ad4176ba8a0fe33f01e 100644 (file)
@@ -1,10 +1,7 @@
 import datetime
 from base import *
 
-from forum.modules import MODULES_PACKAGE
-
 from django.utils.translation import ugettext as _
-import django.dispatch
 
 class ActiveTagManager(models.Manager):
     def get_query_set(self):
@@ -48,7 +45,6 @@ class Tag(BaseModel):
     used_count = models.PositiveIntegerField(default=0)
 
     active = ActiveTagManager()
-    objects = ActiveTagManager()
 
     class Meta:
         ordering = ('-used_count', 'name')