From 0cf790d4394b8945a4e162bc49ff9bef6c561da7 Mon Sep 17 00:00:00 2001 From: Joseph Spiros Date: Tue, 29 Jun 2010 18:39:56 -0400 Subject: [PATCH] Added app_label to Tag. Removed app_label from abstract models, as it would be inherited by non-abstract subclasses in other applications. --- models/base.py | 8 ++++---- models/nodes.py | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/models/base.py b/models/base.py index 3482a1a..9434825 100644 --- a/models/base.py +++ b/models/base.py @@ -13,6 +13,9 @@ class Tag(models.Model): def __unicode__(self): return self.name + + class Meta: + app_label = 'philo' class Titled(models.Model): @@ -113,7 +116,6 @@ class Entity(models.Model): class Meta: abstract = True - app_label = 'philo' class TreeManager(models.Manager): @@ -172,7 +174,6 @@ class TreeModel(models.Model): class Meta: unique_together = (('parent', 'slug'),) abstract = True - app_label = 'philo' class TreeEntity(TreeModel, Entity): @@ -189,5 +190,4 @@ class TreeEntity(TreeModel, Entity): return super(TreeEntity, self).relationships class Meta: - abstract = True - app_label = 'philo' \ No newline at end of file + abstract = True \ No newline at end of file diff --git a/models/nodes.py b/models/nodes.py index 9eb2bd0..9c18e52 100644 --- a/models/nodes.py +++ b/models/nodes.py @@ -48,7 +48,6 @@ class View(Entity): class Meta: abstract = True - app_label = 'philo' _view_content_type_limiter.cls = View @@ -69,7 +68,6 @@ class MultiView(View): class Meta: abstract = True - app_label = 'philo' class Redirect(View): -- 2.20.1