Currently, if you do something like get_view(category='blah', tag=view.tags) then if the current view has no tags, the view.tags will be [], which will cause no entries to match.
There are two possibilities for fixing this:
- Make
view.tags return None if the tagset is empty
- Make
get_view(tag=[]) apply no tag filter
Choice 2 makes the most high-level sense, but doing that would eliminate the possibility of purposefully excluding entries that do have tags, although it isn't clear if get_view(tag=[]) currently works at all anyway.
The current workaround is to do something like
get_view(tag=view.tags or None)
which also feels super grody.
Currently, if you do something like
get_view(category='blah', tag=view.tags)then if the current view has no tags, theview.tagswill be[], which will cause no entries to match.There are two possibilities for fixing this:
view.tagsreturnNoneif the tagset is emptyget_view(tag=[])apply no tag filterChoice 2 makes the most high-level sense, but doing that would eliminate the possibility of purposefully excluding entries that do have tags, although it isn't clear if
get_view(tag=[])currently works at all anyway.The current workaround is to do something like
which also feels super grody.