fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9c31d87
)
Added intermediary_table_model attribute to TagBase and its subclasses.
author
Marek Stępniowski
<marek@stepniowski.com>
Fri, 22 Aug 2008 12:17:21 +0000
(14:17 +0200)
committer
Marek Stępniowski
<marek@stepniowski.com>
Fri, 22 Aug 2008 12:17:21 +0000
(14:17 +0200)
newtagging/models.py
patch
|
blob
|
history
diff --git
a/newtagging/models.py
b/newtagging/models.py
index
7ce5950
..
def1beb
100644
(file)
--- 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
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
return model