fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cover attribution in book text and checking script
[wolnelektury.git]
/
apps
/
newtagging
/
managers.py
diff --git
a/apps/newtagging/managers.py
b/apps/newtagging/managers.py
index
3107070
..
f802aa1
100644
(file)
--- a/
apps/newtagging/managers.py
+++ b/
apps/newtagging/managers.py
@@
-35,11
+35,13
@@
class ModelTaggedItemManager(models.Manager):
super(ModelTaggedItemManager, self).__init__()
self.intermediary_table_model = tag_model.objects.intermediary_table_model
super(ModelTaggedItemManager, self).__init__()
self.intermediary_table_model = tag_model.objects.intermediary_table_model
- def related_to(self, obj, queryset=None, num=None):
+ def related_to(self, obj, queryset=None, num=None
, ignore_by_tag=None
):
if queryset is None:
if queryset is None:
- return self.intermediary_table_model.objects.get_related(obj, self.model, num=num)
+ return self.intermediary_table_model.objects.get_related(
+ obj, self.model, num=num, ignore_by_tag=ignore_by_tag)
else:
else:
- return self.intermediary_table_model.objects.get_related(obj, queryset, num=num)
+ return self.intermediary_table_model.objects.get_related(
+ obj, queryset, num=num, ignore_by_tag=ignore_by_tag)
def with_all(self, tags, queryset=None):
if queryset is None:
def with_all(self, tags, queryset=None):
if queryset is None: