Add Tower version to query string for minified CSS/JS.

This commit is contained in:
Chris Church
2015-04-09 15:03:20 -04:00
parent 8beed7f409
commit d1123d145f
3 changed files with 12 additions and 2 deletions

View File

@@ -1,9 +1,18 @@
# Copyright (c) 2014 AnsibleWorks, Inc.
# All Rights Reserved.
# Django
from django.conf import settings as django_settings
# Ansible Tower
from awx.main.utils import get_awx_version
def settings(request):
return {
'settings': django_settings,
}
def version(request):
return {
'version': get_awx_version(),
}