From 009940c77bf08f4c85d8f2dfabbc650937cc2e38 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 26 Aug 2022 11:58:21 +0100 Subject: [PATCH 1/2] Add database Field.non_db_attrs --- django-stubs/db/models/fields/__init__.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/django-stubs/db/models/fields/__init__.pyi b/django-stubs/db/models/fields/__init__.pyi index 7a06019bb..3dc9e5a33 100644 --- a/django-stubs/db/models/fields/__init__.pyi +++ b/django-stubs/db/models/fields/__init__.pyi @@ -155,6 +155,7 @@ class Field(RegisterLookupMixin, Generic[_ST, _GT]): hidden: bool system_check_removed_details: Optional[Any] system_check_deprecated_details: Optional[Any] + non_db_attrs: Tuple[str] def __init__( self, verbose_name: Optional[str] = ..., From 8222d8be5b88477953778431b7953c08ba00210f Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 26 Aug 2022 14:36:03 +0300 Subject: [PATCH 2/2] Update django-stubs/db/models/fields/__init__.pyi --- django-stubs/db/models/fields/__init__.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django-stubs/db/models/fields/__init__.pyi b/django-stubs/db/models/fields/__init__.pyi index 3dc9e5a33..40f422781 100644 --- a/django-stubs/db/models/fields/__init__.pyi +++ b/django-stubs/db/models/fields/__init__.pyi @@ -155,7 +155,7 @@ class Field(RegisterLookupMixin, Generic[_ST, _GT]): hidden: bool system_check_removed_details: Optional[Any] system_check_deprecated_details: Optional[Any] - non_db_attrs: Tuple[str] + non_db_attrs: Tuple[str, ...] def __init__( self, verbose_name: Optional[str] = ...,