fix: add fallback instance title
otherwise the hero bar can be hidden altogether
This commit is contained in:
parent
6e4f390f3f
commit
7fc5d84abd
|
@ -2000,7 +2000,7 @@ class MasterView(View):
|
|||
Default logic returns the value from ``str(instance)``;
|
||||
subclass may override if needed.
|
||||
"""
|
||||
return str(instance)
|
||||
return str(instance) or "(no title)"
|
||||
|
||||
def get_action_url(self, action, obj, **kwargs):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue