1 2 3 4 5 6 | def list_tag(request, tag):
from re import sub
tag = sub('-',' ',tag)
query_tag = Tag.objects.get(name=tag)
events = TaggedItem.objects.get_by_model(Event, query_tag)
events = events.order_by('-start')
|
More like this
- Frequently used tags/filters for Jinja2 by mathwizard 4 years, 8 months ago
- Soft hyphenation (­) template filter using PyHyphen by dokterbob 4 years, 1 month ago
- View to retrieve objects meeting a complex tag query by nathangeffen 2 years, 5 months ago
- default url routing and shortcut by vicalloy 3 years, 11 months ago
- nbsp filter by vitamon 6 months, 2 weeks ago
Comments