diff --git a/django-stubs/contrib/contenttypes/fields.pyi b/django-stubs/contrib/contenttypes/fields.pyi index 9d243fd..27b4219 100644 --- a/django-stubs/contrib/contenttypes/fields.pyi +++ b/django-stubs/contrib/contenttypes/fields.pyi @@ -83,7 +83,6 @@ class GenericRelation(ForeignObject): def resolve_related_fields(self) -> List[Tuple[PositiveIntegerField, Field]]: ... def get_path_info(self, filtered_relation: Optional[FilteredRelation] = ...) -> List[PathInfo]: ... def get_reverse_path_info(self, filtered_relation: None = ...) -> List[PathInfo]: ... - def value_to_string(self, obj: Model) -> str: ... def get_content_type(self) -> ContentType: ... def get_extra_restriction( self, where_class: Type[WhereNode], alias: Optional[str], remote_alias: str diff --git a/django-stubs/contrib/postgres/fields/jsonb.pyi b/django-stubs/contrib/postgres/fields/jsonb.pyi index 48f0098..2959e16 100644 --- a/django-stubs/contrib/postgres/fields/jsonb.pyi +++ b/django-stubs/contrib/postgres/fields/jsonb.pyi @@ -22,7 +22,6 @@ class JSONField(CheckFieldDefaultMixin, Field): encoder: Optional[Type[JSONEncoder]] = ..., **kwargs: Any ) -> None: ... - def value_to_string(self, obj: Any): ... class KeyTransform(Transform): operator: str = ... diff --git a/django-stubs/contrib/postgres/fields/ranges.pyi b/django-stubs/contrib/postgres/fields/ranges.pyi index eb8eeb0..dc71197 100644 --- a/django-stubs/contrib/postgres/fields/ranges.pyi +++ b/django-stubs/contrib/postgres/fields/ranges.pyi @@ -10,7 +10,6 @@ class RangeField(models.Field): range_type: Any = ... def get_prep_value(self, value: Any): ... def to_python(self, value: Any): ... - def value_to_string(self, obj: Any): ... class IntegerRangeField(RangeField): def __get__(self, instance, owner) -> NumericRange: ... diff --git a/django-stubs/db/models/fields/__init__.pyi b/django-stubs/db/models/fields/__init__.pyi index fff9869..c68269a 100644 --- a/django-stubs/db/models/fields/__init__.pyi +++ b/django-stubs/db/models/fields/__init__.pyi @@ -142,6 +142,7 @@ class Field(RegisterLookupMixin, Generic[_ST, _GT]): def cached_col(self) -> Col: ... def value_from_object(self, obj: Model) -> _GT: ... def get_attname(self) -> str: ... + def value_to_string(self, obj: Any) -> str: ... class IntegerField(Field[_ST, _GT]): _pyi_private_set_type: Union[float, int, str, Combinable] diff --git a/django-stubs/db/models/fields/json.pyi b/django-stubs/db/models/fields/json.pyi index 0af4f75..20cc279 100644 --- a/django-stubs/db/models/fields/json.pyi +++ b/django-stubs/db/models/fields/json.pyi @@ -14,7 +14,6 @@ class JSONField(CheckFieldDefaultMixin, Field): decoder: Optional[Callable] = ..., **kwargs: Any ) -> None: ... - def value_to_string(self, obj: Any): ... class DataContains(PostgresOperatorLookup): ... class ContainedBy(PostgresOperatorLookup): ...