From 68bf56b5bf8a17172a83c99a08728643631bd71c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Fri, 22 Aug 2008 14:17:21 +0200 Subject: [PATCH] Added intermediary_table_model attribute to TagBase and its subclasses. --- newtagging/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/newtagging/models.py b/newtagging/models.py index 7ce5950bd..def1beb8a 100644 --- a/newtagging/models.py +++ b/newtagging/models.py @@ -484,9 +484,9 @@ class TagMeta(ModelBase): model = super(TagMeta, cls).__new__(cls, name, bases, attrs) if not model._meta.abstract: # Create an intermediary table and register custom managers for concrete models - intermediary_table_model = create_intermediary_table_model(model) - TagManager(intermediary_table_model).contribute_to_class(model, 'objects') - TaggedItemManager(model).contribute_to_class(intermediary_table_model, 'objects') + model.intermediary_table_model = create_intermediary_table_model(model) + TagManager(model.intermediary_table_model).contribute_to_class(model, 'objects') + TaggedItemManager(model).contribute_to_class(model.intermediary_table_model, 'objects') return model -- 2.20.1