Skip to content

Commit

Permalink
5.0: Update django.db.models.field.related
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeHyuckSa committed May 12, 2024
1 parent 6da49a7 commit 200ce7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions django-stubs/db/models/fields/related.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ class ForeignObject(RelatedField[_ST, _GT]):
def local_related_fields(self) -> tuple[Field, ...]: ...
@cached_property
def foreign_related_fields(self) -> tuple[Field, ...]: ...
def get_joining_fields(self, reverse_join: bool = False) -> tuple[tuple[Field, Field], ...]: ...
def get_reverse_joining_fields(self) -> tuple[tuple[Field, Field], ...]: ...

class ForeignKey(ForeignObject[_ST, _GT]):
_pyi_private_set_type: Any | Combinable
Expand Down
6 changes: 0 additions & 6 deletions scripts/stubtest/allowlist_todo_django50.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ 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
django.contrib.gis.db.models.ForeignObject.get_joining_fields
django.contrib.gis.db.models.ForeignObject.get_reverse_joining_fields
django.contrib.gis.db.models.ForeignObjectRel.get_joining_fields
django.contrib.gis.db.models.Func.allowed_default
django.contrib.gis.db.models.Lookup.allowed_default
Expand Down Expand Up @@ -42,8 +40,6 @@ django.db.models.Field.generated
django.db.models.FilteredRelation.relabeled_clone
django.db.models.FilteredRelation.resolve_expression
django.db.models.ForeignKey.cast_db_type
django.db.models.ForeignObject.get_joining_fields
django.db.models.ForeignObject.get_reverse_joining_fields
django.db.models.ForeignObjectRel.get_joining_fields
django.db.models.Func.allowed_default
django.db.models.Lookup.allowed_default
Expand All @@ -59,8 +55,6 @@ 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
django.db.models.fields.related.ForeignObjectRel.get_joining_fields
django.db.models.fields.related.ForwardManyToOneDescriptor.get_prefetch_querysets
django.db.models.fields.related.ReverseOneToOneDescriptor.get_prefetch_querysets
Expand Down

0 comments on commit 200ce7c

Please sign in to comment.