django-stubs icon indicating copy to clipboard operation
django-stubs copied to clipboard

Add `django.db.models.fields.related.ForeignObject` missing methods and attributes

Open JaeHyuckSa opened this issue 9 months ago • 0 comments

I have made things!

Some of the Django 5.0 updates were missing from the related classes, so I added them referring to the allowlist_todo.

If you need any additional work, please let me know and I'll work on it right away. Thank you :)

django.db.models.ForeignObject

  • [x] django.db.models.ForeignObject.__copy__
  • [x] django.db.models.ForeignObject.contribute_to_related_class
  • [x] django.db.models.ForeignObject.forward_related_accessor_class
  • [x] django.db.models.ForeignObject.get_class_lookups
  • [x] django.db.models.ForeignObject.get_extra_descriptor_filter
  • [x] django.db.models.ForeignObject.get_foreign_related_value
  • [x] django.db.models.ForeignObject.get_instance_value_for_fields
  • [x] django.db.models.ForeignObject.get_joining_columns
  • [x] django.db.models.ForeignObject.get_local_related_value
  • [x] django.db.models.ForeignObject.get_path_info
  • [x] django.db.models.ForeignObject.get_reverse_joining_columns
  • [x] django.db.models.ForeignObject.get_reverse_path_info
  • [x] django.db.models.ForeignObject.related_accessor_class
  • [x] django.db.models.ForeignObject.requires_unique_target

Related issues

  • https://github.com/typeddjango/django-stubs/pull/2151

JaeHyuckSa avatar May 12 '24 18:05 JaeHyuckSa