Skip to content

Commit

Permalink
versioning visible in admin interface
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Apr 4, 2022
1 parent 92e2916 commit 0c52378
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions alyx/alyx/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__version__ = '1.0.0'
VERSION = __version__ # synonym
4 changes: 2 additions & 2 deletions alyx/alyx/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from rest_framework import permissions
from dateutil.parser import parse
from reversion.admin import VersionAdmin

from alyx import __version__ as version

logger = structlog.get_logger(__name__)

Expand Down Expand Up @@ -600,7 +600,7 @@ def rest_permission_classes():
mysite.site_header = 'Alyx'
mysite.site_title = 'Alyx'
mysite.site_url = None
mysite.index_title = 'Welcome to Alyx'
mysite.index_title = f'Welcome to Alyx {version}'
mysite.enable_nav_sidebar = False

admin.site = mysite

0 comments on commit 0c52378

Please sign in to comment.