mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
parent
6a039800db
commit
d0a42a14c0
@ -15,7 +15,8 @@ from django.contrib.gis.gdal import (
|
||||
SpatialReference,
|
||||
)
|
||||
from django.contrib.gis.gdal.field import (
|
||||
OFTDate, OFTDateTime, OFTInteger, OFTInteger64, OFTReal, OFTString, OFTTime,
|
||||
OFTDate, OFTDateTime, OFTInteger, OFTInteger64, OFTReal, OFTString,
|
||||
OFTTime,
|
||||
)
|
||||
from django.core.exceptions import FieldDoesNotExist, ObjectDoesNotExist
|
||||
from django.db import connections, models, router, transaction
|
||||
|
@ -5,7 +5,8 @@ models for GeoDjango and/or mapping dictionaries for use with the
|
||||
"""
|
||||
from django.contrib.gis.gdal import DataSource
|
||||
from django.contrib.gis.gdal.field import (
|
||||
OFTDate, OFTDateTime, OFTInteger, OFTInteger64, OFTReal, OFTString, OFTTime,
|
||||
OFTDate, OFTDateTime, OFTInteger, OFTInteger64, OFTReal, OFTString,
|
||||
OFTTime,
|
||||
)
|
||||
|
||||
|
||||
|
@ -5,7 +5,8 @@ from functools import wraps
|
||||
from django.conf import settings
|
||||
from django.core import signals
|
||||
from django.core.exceptions import (
|
||||
PermissionDenied, RequestDataTooBig, SuspiciousOperation, TooManyFieldsSent,
|
||||
PermissionDenied, RequestDataTooBig, SuspiciousOperation,
|
||||
TooManyFieldsSent,
|
||||
)
|
||||
from django.http import Http404
|
||||
from django.http.multipartparser import MultiPartParserError
|
||||
|
@ -19,7 +19,8 @@ from . import Field
|
||||
from .mixins import FieldCacheMixin
|
||||
from .related_descriptors import (
|
||||
ForwardManyToOneDescriptor, ForwardOneToOneDescriptor,
|
||||
ManyToManyDescriptor, ReverseManyToOneDescriptor, ReverseOneToOneDescriptor,
|
||||
ManyToManyDescriptor, ReverseManyToOneDescriptor,
|
||||
ReverseOneToOneDescriptor,
|
||||
)
|
||||
from .related_lookups import (
|
||||
RelatedExact, RelatedGreaterThan, RelatedGreaterThanOrEqual, RelatedIn,
|
||||
|
@ -11,7 +11,8 @@ from functools import lru_cache
|
||||
from django.conf import settings
|
||||
from django.core import exceptions
|
||||
from django.db import (
|
||||
DJANGO_VERSION_PICKLE_KEY, IntegrityError, connections, router, transaction,
|
||||
DJANGO_VERSION_PICKLE_KEY, IntegrityError, connections, router,
|
||||
transaction,
|
||||
)
|
||||
from django.db.models import DateField, DateTimeField, sql
|
||||
from django.db.models.constants import LOOKUP_SEP
|
||||
|
@ -12,7 +12,8 @@ from django.urls import reverse
|
||||
from .admin import SubscriberAdmin
|
||||
from .forms import MediaActionForm
|
||||
from .models import (
|
||||
Actor, Answer, ExternalSubscriber, Question, Subscriber, UnchangeableObject,
|
||||
Actor, Answer, ExternalSubscriber, Question, Subscriber,
|
||||
UnchangeableObject,
|
||||
)
|
||||
|
||||
|
||||
|
@ -8,7 +8,8 @@ from django.test import TestCase, override_settings
|
||||
from django.test.utils import isolate_apps
|
||||
|
||||
from .models import (
|
||||
Article, Author, ModelWithNullFKToSite, SchemeIncludedURL, Site as MockSite,
|
||||
Article, Author, ModelWithNullFKToSite, SchemeIncludedURL,
|
||||
Site as MockSite,
|
||||
)
|
||||
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
from django.forms import (
|
||||
CharField, HiddenInput, PasswordInput, Textarea, TextInput, ValidationError,
|
||||
CharField, HiddenInput, PasswordInput, Textarea, TextInput,
|
||||
ValidationError,
|
||||
)
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
|
@ -3,7 +3,8 @@ from datetime import date
|
||||
from django import forms
|
||||
from django.contrib.admin.models import ADDITION, CHANGE, DELETION, LogEntry
|
||||
from django.contrib.admin.options import (
|
||||
HORIZONTAL, VERTICAL, ModelAdmin, TabularInline, get_content_type_for_model,
|
||||
HORIZONTAL, VERTICAL, ModelAdmin, TabularInline,
|
||||
get_content_type_for_model,
|
||||
)
|
||||
from django.contrib.admin.sites import AdminSite
|
||||
from django.contrib.admin.widgets import (
|
||||
|
@ -1,6 +1,7 @@
|
||||
import unittest
|
||||
from datetime import (
|
||||
date as original_date, datetime as original_datetime, time as original_time,
|
||||
date as original_date, datetime as original_datetime,
|
||||
time as original_time,
|
||||
)
|
||||
|
||||
from django.utils.datetime_safe import date, datetime, time
|
||||
|
Loading…
Reference in New Issue
Block a user