Run Black over the whole codebase
This commit is contained in:
parent
cd990e4e2f
commit
2e7d12b3e6
109 changed files with 1539 additions and 1209 deletions
|
|
@ -11,7 +11,7 @@ def short_url(entity):
|
|||
if not prefixes:
|
||||
for k, m in settings.SHORTEN_MODELS.items():
|
||||
prefixes[apps.get_model(m)] = k
|
||||
base = '/'
|
||||
if hasattr(settings, 'SHORT_BASE_URL'):
|
||||
base = "/"
|
||||
if hasattr(settings, "SHORT_BASE_URL"):
|
||||
base = settings.SHORT_BASE_URL
|
||||
return base + prefixes[type(entity)] + AbcIdConverter().to_url(entity.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue