mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Some flake8 changes
This commit is contained in:
parent
e0357d53f5
commit
43c552c7c6
@ -25,7 +25,6 @@ import hashlib
|
||||
|
||||
try:
|
||||
import django
|
||||
from django.utils.encoding import force_bytes
|
||||
from django.db.backends.base import schema
|
||||
from django.db.backends.utils import names_digest
|
||||
HAS_DJANGO = True
|
||||
@ -41,7 +40,7 @@ if HAS_DJANGO is True:
|
||||
# but will support the `usedforsecurity` keyword on RHEL and Centos systems.
|
||||
|
||||
# Keep an eye on https://code.djangoproject.com/ticket/28401
|
||||
target_version = '2.0.13'
|
||||
target_version = '2.2.2'
|
||||
if django.__version__ != target_version:
|
||||
raise RuntimeError(
|
||||
"Django version other than {target} detected: {current}. "
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import pytest
|
||||
|
||||
from django.test import TransactionTestCase
|
||||
|
||||
from awx.main.models import (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user