Skip to content

Commit

Permalink
Adds support for db_comment option on postgres and gis model fields. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeHyuckSa authored Apr 12, 2024
1 parent 94968c8 commit 99638f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django-stubs/contrib/gis/db/models/fields.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class BaseSpatialField(Field[_ST, _GT]):
choices: _FieldChoices | None = ...,
help_text: _StrOrPromise = ...,
db_column: str | None = ...,
db_comment: str | None = ...,
db_tablespace: str | None = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: _ErrorMessagesMapping | None = ...,
Expand Down Expand Up @@ -106,6 +107,7 @@ class GeometryField(BaseSpatialField[_ST, _GT]):
choices: _FieldChoices | None = ...,
help_text: _StrOrPromise = ...,
db_column: str | None = ...,
db_comment: str | None = ...,
db_tablespace: str | None = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: _ErrorMessagesMapping | None = ...,
Expand Down
1 change: 1 addition & 0 deletions django-stubs/contrib/postgres/fields/array.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class ArrayField(CheckFieldDefaultMixin, Field[_ST, _GT]):
choices: _FieldChoices | None = ...,
help_text: _StrOrPromise = ...,
db_column: str | None = ...,
db_comment: str | None = ...,
db_tablespace: str | None = ...,
validators: Iterable[_ValidatorCallable] = ...,
error_messages: _ErrorMessagesMapping | None = ...,
Expand Down

0 comments on commit 99638f4

Please sign in to comment.