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:
Sunil Mohan Adapa authored and James Valleroy committed 2017-10-04 18:32:41 -04:00
1 parent 7540266a29
commit b8adb19e8b
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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: