]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/tag.py
One more 1.2 compatibility fix.
[osqa.git] / forum / models / tag.py
index cda27796e60b3fd34d0179ef1441ec0c3c60ce53..16f1c6cdc80a1699215d669f7984fd7dada35d9a 100644 (file)
@@ -8,18 +8,16 @@ class ActiveTagManager(UndeletedObjectManager):
         return super(UndeletedObjectManager, self).get_query_set().exclude(used_count=0)
 
 
-class Tag(DeletableContent):
+class Tag(BaseModel, DeletableContent):
     name            = models.CharField(max_length=255, unique=True)
     created_by      = models.ForeignKey(User, related_name='created_tags')
     marked_by       = models.ManyToManyField(User, related_name="marked_tags", through="MarkedTag")
     # Denormalised data
     used_count = models.PositiveIntegerField(default=0)
 
-    objects = models.Manager()
     active = ActiveTagManager()
 
     class Meta(DeletableContent.Meta):
-        db_table = u'tag'
         ordering = ('-used_count', 'name')
 
     def __unicode__(self):