Commit e1c565c6 by Alex Gaynor

put the tag int he context.

parent 617a1ed3
......@@ -12,4 +12,7 @@ def tagged_object_list(request, slug, queryset, **kwargs):
qs = queryset.filter(pk__in=TaggedItem.objects.filter(
tag=tag, content_type=ContentType.objects.get_for_model(queryset.model)
))
if "extra_context" not in kwargs:
kwargs["extra_context"] = {}
kwargs["extra_context"]["tag"] = tag
return object_list(request, queryset, **kwargs)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment