fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add mock Search class for development.
[wolnelektury.git]
/
apps
/
newtagging
/
models.py
diff --git
a/apps/newtagging/models.py
b/apps/newtagging/models.py
index
7e9936f
..
ead442f
100644
(file)
--- a/
apps/newtagging/models.py
+++ b/
apps/newtagging/models.py
@@
-228,8
+228,8
@@
def create_intermediary_table_model(model):
class TagMeta(ModelBase):
"Metaclass for tag models (models inheriting from TagBase)."
class TagMeta(ModelBase):
"Metaclass for tag models (models inheriting from TagBase)."
- def __new__(
cl
s, name, bases, attrs):
- model = super(TagMeta,
cls).__new__(cl
s, name, bases, attrs)
+ def __new__(
mc
s, name, bases, attrs):
+ model = super(TagMeta,
mcs).__new__(mc
s, name, bases, attrs)
if not model._meta.abstract:
# Create an intermediary table and register custom managers for concrete models
model.intermediary_table_model = create_intermediary_table_model(model)
if not model._meta.abstract:
# Create an intermediary table and register custom managers for concrete models
model.intermediary_table_model = create_intermediary_table_model(model)