Permalink
Browse files

update SnippetManager matches_tag method to use current (as of 0.9.0)…

… Taggit filtering API
  • Loading branch information...
1 parent 6627b04 commit 26a12dd3bf1971d4011ba7c1abb9af89d16b7188 @wilsaj wilsaj committed Nov 8, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 cab/models.py
View
2 cab/models.py
@@ -57,7 +57,7 @@ def most_bookmarked(self):
return self.all().order_by('-bookmark_count')
def matches_tag(self, tag):
- return self.filter(tags__in=[tag])
+ return self.filter(tags__name__in=[tag])
DJANGO_VERSIONS = (
(1.2, '1.2'),

0 comments on commit 26a12dd

Please sign in to comment.