frontpage: Avoid URL reverse during Shortcut component construction

This allows the entire app construction process not to require Django.

Tests:

- An app with url is None (ejabberd) and one without (transmission) show their
on the frontpage. Both shortcuts work as expected.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2021-11-18 06:48:19 -05:00
1 parent 3c44fa9a07
commit fa48fafa6b
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ class Shortcut(app.FollowerComponent):
"""
super().__init__(component_id)
if not url:
if url is None:
url = '?selected={id}'.format(id=component_id)
self.name = name