mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Fix some Django deprecations
- Use simple_tag() instead of assignment_tag(). Assignments with simple_tag() works just like before. - When loading urls for application, specify application name during inclusion. - Use the reverse() method from django.urls which as moved from django.core.urlresolvers. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
7540266a29
commit
b8adb19e8b
3 files changed
+3
-3
No files matched your search
@@ -118,7 +118,7 @@ def _include_module_urls(module_import_path, module_name):
|
||||
try:
|
||||
urls.urlpatterns += [
|
||||
django.conf.urls.url(
|
||||
r'', django.conf.urls.include(url_module, module_name))]
|
||||
r'', django.conf.urls.include((url_module, module_name)))]
|
||||
except ImportError:
|
||||
logger.debug('No URLs for %s', module_name)
|
||||
if cfg.debug:
|
||||
|
||||
Reference in new issue
Block a user