flebel / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

Small typo in managers.py #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
managers.py

      def usage(self, *args, **kwargs):
-        return Tag.objects.usage_for_model(self.model, *arg, **kwargs)
+        return Tag.objects.usage_for_model(self.model, *args, **kwargs)

-- 
Christos Trochalakis

Original issue reported on code.google.com by yati...@gmail.com on 27 Feb 2008 at 5:41

GoogleCodeExporter commented 9 years ago
Here's a diff...

Index: tagging/managers.py
===================================================================
--- tagging/managers.py (revision 132)
+++ tagging/managers.py (working copy)
@@ -23,7 +23,7 @@
         return Tag.objects.related_for_model(tags, self.model, *args, **kwargs)

     def usage(self, *args, **kwargs):
-        return Tag.objects.usage_for_model(self.model, *arg, **kwargs)
+        return Tag.objects.usage_for_model(self.model, *args, **kwargs)

 class ModelTaggedItemManager(models.Manager):
     """
@@ -65,4 +65,4 @@
         Tag.objects.update_tags(instance, value)

     def __del__(self, instance):
-        Tag.objects.update_tags(instance, None)
\ No newline at end of file
+        Tag.objects.update_tags(instance, None)

Original comment by mziegelb...@gmail.com on 15 Apr 2008 at 3:00

GoogleCodeExporter commented 9 years ago
This one is a show stopper for me. I keep having to modify managers.py every 
time I
update to get around it. It's an easy fix, hope to see it resolved soon! thanks!

Original comment by thn...@gmail.com on 3 Sep 2008 at 6:42

GoogleCodeExporter commented 9 years ago
Fixed in revision 152

Original comment by jonathan.buchanan on 30 Oct 2008 at 2:27