Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0: Update django.db.models.field: add generated attribute to model fields #2152

Merged
merged 5 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions django-stubs/db/models/fields/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ class Field(RegisterLookupMixin, Generic[_ST, _GT]):
remote_field: ForeignObjectRel | None
is_relation: bool
related_model: type[Model] | Literal["self"] | None
generated: bool
JaeHyuckSa marked this conversation as resolved.
Show resolved Hide resolved
one_to_many: bool | None
one_to_one: bool | None
many_to_many: bool | None
Expand Down
3 changes: 0 additions & 3 deletions scripts/stubtest/allowlist_todo_django50.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ django.contrib.gis.db.models.Case.allowed_default
django.contrib.gis.db.models.ExpressionWrapper.allowed_default
django.contrib.gis.db.models.F.allowed_default
django.contrib.gis.db.models.Field._get_flatchoices
django.contrib.gis.db.models.Field.generated
django.contrib.gis.db.models.FilteredRelation.relabeled_clone
django.contrib.gis.db.models.FilteredRelation.resolve_expression
django.contrib.gis.db.models.ForeignKey.cast_db_type
Expand Down Expand Up @@ -38,7 +37,6 @@ django.db.models.Case.allowed_default
django.db.models.ExpressionWrapper.allowed_default
django.db.models.F.allowed_default
django.db.models.Field._get_flatchoices
django.db.models.Field.generated
django.db.models.FilteredRelation.relabeled_clone
django.db.models.FilteredRelation.resolve_expression
django.db.models.ForeignKey.cast_db_type
Expand All @@ -57,7 +55,6 @@ django.db.models.expressions.F.allowed_default
django.db.models.expressions.Func.allowed_default
django.db.models.expressions.When.allowed_default
django.db.models.fields.Field._get_flatchoices
django.db.models.fields.Field.generated
django.db.models.fields.related.ForeignKey.cast_db_type
django.db.models.fields.related.ForeignObject.get_joining_fields
django.db.models.fields.related.ForeignObject.get_reverse_joining_fields
Expand Down
Loading