3
0
Fork 0

fix: add fallback instance title

otherwise the hero bar can be hidden altogether
This commit is contained in:
Lance Edgar 2024-12-11 22:29:20 -06:00
parent 6e4f390f3f
commit 7fc5d84abd

View file

@ -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):
"""