Restructured sample project for Django 2.

Refactored database and changed "app" to "samples" so name didn't conflict with "AppConfig".
Replaced deprecated assignment_tag with simple_tag.
Updated unit tests.
This commit is contained in:
Brandon Taylor
2017-12-04 21:29:55 -05:00
parent 10188ec8ac
commit f4daaeb232
13 changed files with 68 additions and 66 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
VERSION = (2, 1, 1)
VERSION = (2, 1, 2)
DEV_N = None
@@ -76,7 +76,7 @@ def dynamic_regroup(parser, token):
return DynamicRegroupNode(target, parser, expression, var_name)
@register.assignment_tag
@register.simple_tag
def get_django_version():
version = django.VERSION
return {'major': version[0], 'minor': version[1]}