We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa96bd7 commit af8486fCopy full SHA for af8486f
1 file changed
collective/behavior/relatedmedia/browser.py
@@ -351,8 +351,16 @@ def __call__(self):
351
url=obj.absolute_url_path(),
352
),
353
target=dict(
354
- title=source_obj.title_or_id() if source_obj else "-broken-",
355
- url=source_obj.absolute_url_path() if source_obj else "#",
+ title=(
+ source_obj.title_or_id()
356
+ if source_obj
357
+ else "-broken-"
358
+ ),
359
+ url=(
360
+ source_obj.absolute_url_path()
361
362
+ else "#"
363
364
365
)
366
0 commit comments