Remove redundant Django 1.11 references

This commit is contained in:
Ülgen Sarıkavak 2021-03-11 05:48:56 +03:00
parent e61552721c
commit d0c84608be
5 changed files with 3 additions and 12 deletions

View File

@ -281,7 +281,7 @@ from the command line.
$ python ./manage.py runserver
Performing system checks...
Django version 1.11, using settings 'cookbook.settings'
Django version 3.1.7, using settings 'cookbook.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

View File

@ -238,10 +238,7 @@ def convert_onetoone_field_to_djangomodel(field, registry=None):
if not _type:
return
# We do this for a bug in Django 1.8, where null attr
# is not available in the OneToOneRel instance
null = getattr(field, "null", True)
return Field(_type, required=not null)
return Field(_type, required=not field.null)
return Dynamic(dynamic_type)

View File

@ -16,10 +16,7 @@ from __future__ import unicode_literals
from django.conf import settings
from django.test.signals import setting_changed
try:
import importlib # Available in Python 3.1+
except ImportError:
from django.utils import importlib # Will be removed in Django 1.9
import importlib # Available in Python 3.1+
# Copied shamelessly from Django REST Framework

View File

@ -51,7 +51,6 @@ setup(
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: PyPy",
"Framework :: Django",
"Framework :: Django :: 1.11",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
],

View File

@ -26,8 +26,6 @@ setenv =
deps =
-e.[test]
psycopg2-binary
django111: Django>=1.11,<2.0
django111: djangorestframework<3.12
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
django22: Django>=2.2,<3.0