Skip to content

Commit

Permalink
Merge pull request sshwsfc#408 from idalin/master
Browse files Browse the repository at this point in the history
fix django version compare bug
  • Loading branch information
wgbbiao authored Jun 7, 2017
2 parents 7aec57c + 3411e9c commit 0f15749
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Empty file added .vscode/temp.sql
Empty file.
2 changes: 1 addition & 1 deletion xadmin/plugins/xversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def get(self, request, *args, **kwargs):

return TemplateResponse(
request, self.recover_list_template or self.get_template_list(
"views/recover_list.html"),
"views/recover_list.html"),
context)


Expand Down
2 changes: 1 addition & 1 deletion xadmin/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
except ImportError:
from django.utils.timezone import localtime as tz_localtime

if version[1] < 11:
if django.VERSION < (1, 11):
DJANGO_11 = False
else:
DJANGO_11 = True
Expand Down
2 changes: 1 addition & 1 deletion xadmin/views/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def __init__(self, request, *args, **kwargs):
self.request = request
self.request_method = request.method.lower()
self.user = request.user

self.base_plugins = [p(self) for p in getattr(self,
"plugin_classes", [])]

Expand Down

0 comments on commit 0f15749

Please sign in to comment.