Merge branch 'stable' into develop
This commit is contained in:
commit
7ac6447308
12 changed files with 3917 additions and 3573 deletions
|
|
@ -24,7 +24,7 @@ class TagFilter(filters.FilterSet):
|
|||
|
||||
def get_by_similar_tags(qs, tags):
|
||||
"""
|
||||
Return a queryset of obects with at least one matching tag.
|
||||
Return a queryset of objects with at least one matching tag.
|
||||
Annotate the queryset so you can order later by number of matches.
|
||||
"""
|
||||
qs = qs.filter(tagged_items__tag__name__in=tags).annotate(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue