move django.contrib.postgres

This commit is contained in:
Maxim Kurnikov
2018-12-21 05:16:48 +03:00
parent 5a075be908
commit 013b6ee538
6 changed files with 13 additions and 25 deletions

View File

@@ -1,3 +1,10 @@
from .array import * # NOQA
from .jsonb import * # NOQA
from .ranges import * # NOQA
from .array import ArrayField as ArrayField
from .jsonb import JSONField as JSONField, JsonAdapter as JsonAdapter
from .ranges import (
RangeField as RangeField,
IntegerRangeField as IntegerRangeField,
BigIntegerRangeField as BigIntegerRangeField,
FloatRangeField as FloatRangeField,
DateRangeField as DateRangeField,
DateTimeRangeField as DateTimeRangeField,
)

View File

@@ -1,7 +1,6 @@
from typing import Any, Dict, List, Optional, Tuple, Union, TypeVar, Generic, Sequence
from django.db.models.fields import Field
from .mixins import CheckFieldDefaultMixin
_T = TypeVar("_T", bound=Field)

View File

@@ -2,7 +2,6 @@ from json import JSONEncoder
from typing import Any, Dict, List, Optional, Tuple, Type, Union
from django.db.models import Field
from .mixins import CheckFieldDefaultMixin
class JsonAdapter(object):

View File

@@ -1,4 +1,4 @@
from typing import Any, List, Optional
from typing import Any, List
class CheckFieldDefaultMixin:
def check(self, **kwargs: Any) -> List[Any]: ...

View File

@@ -1,44 +1,27 @@
from typing import Any, Optional
from django.db.backends.sqlite3.schema import DatabaseSchemaEditor
from django.db.migrations.operations.base import Operation
from django.db.migrations.state import ProjectState
class CreateExtension(Operation):
reversible: bool = ...
name: Any = ...
name: str = ...
def __init__(self, name: str) -> None: ...
def state_forwards(self, app_label: str, state: ProjectState) -> None: ...
def database_forwards(
self, app_label: str, schema_editor: DatabaseSchemaEditor, from_state: ProjectState, to_state: ProjectState
) -> None: ...
def database_backwards(self, app_label: Any, schema_editor: Any, from_state: Any, to_state: Any) -> None: ...
def describe(self): ...
class BtreeGinExtension(CreateExtension):
name: str = ...
def __init__(self) -> None: ...
class BtreeGistExtension(CreateExtension):
name: str = ...
def __init__(self) -> None: ...
class CITextExtension(CreateExtension):
name: str = ...
def __init__(self) -> None: ...
class CryptoExtension(CreateExtension):
name: str = ...
def __init__(self) -> None: ...
class HStoreExtension(CreateExtension):
name: str = ...
def __init__(self) -> None: ...
class TrigramExtension(CreateExtension):
name: str = ...
def __init__(self) -> None: ...
class UnaccentExtension(CreateExtension):
name: str = ...
def __init__(self) -> None: ...

View File

@@ -1,4 +1,4 @@
from typing import Any, Dict, Optional, Union
from typing import Any, Dict, Optional, Union, Callable
from django.core.cache.backends.base import BaseCache