fix: user: link to bookmark with empty tag
This commit is contained in:
parent
3b95f7cfca
commit
c4f93cec82
@ -353,9 +353,13 @@ class TagModelView(BaseModelView):
|
||||
|
||||
def _name_formatter(self, context, model, name):
|
||||
data = getattr(model, name)
|
||||
if not data:
|
||||
return Markup('<a href="{}">{}</a>'.format(
|
||||
url_for('bookmark.index_view', flt2_tags_number_equal=0),
|
||||
'<EMPTY TAG>'
|
||||
))
|
||||
return Markup('<a href="{}">{}</a>'.format(
|
||||
url_for('bookmark.index_view', flt1_tags_contain=data),
|
||||
data if data else '<EMPTY TAG>'
|
||||
url_for('bookmark.index_view', flt1_tags_contain=data), data
|
||||
))
|
||||
|
||||
can_create = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user