mirror of
https://github.com/Hopiu/wagtail-modeltranslation.git
synced 2026-03-16 22:10:30 +00:00
Fix version to work in early wagtail
This commit is contained in:
parent
b26759205d
commit
03e8b0e38c
1 changed files with 5 additions and 1 deletions
|
|
@ -5,6 +5,10 @@ import sys
|
|||
import django
|
||||
from django.conf import settings
|
||||
from django.core.management import call_command
|
||||
try:
|
||||
from wagtail import VERSION
|
||||
except ImportError:
|
||||
VERSION = 1, 6, 3 # assume it's 1.6.3, the latest version without VERSION
|
||||
|
||||
|
||||
def runtests():
|
||||
|
|
@ -32,7 +36,7 @@ def runtests():
|
|||
|
||||
# Configure test environment
|
||||
import wagtail
|
||||
if wagtail.VERSION[0] < 2:
|
||||
if VERSION[0] < 2:
|
||||
WAGTAIL_MODULES = [
|
||||
'wagtail.wagtailcore',
|
||||
'wagtail.wagtailadmin',
|
||||
|
|
|
|||
Loading…
Reference in a new issue