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.5: Enable import aprefetch_related_objects from django.db.models #2080

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jlost
Copy link
Contributor

@jlost jlost commented Apr 21, 2024

I have made things!

Captures aprefetch_related_objects import fix slated for 5.0.5 per django/django#18091.

Related issues

#1493

Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, take a look at:

error: django.contrib.gis.db.models.aprefetch_related_objects is not present at runtime
Stub: in file /home/runner/work/django-stubs/django-stubs/django-stubs/contrib/gis/db/models/__init__.pyi:244
def [_T <: django.db.models.base.Model] (model_instances: typing.Iterable[_T`-1], *related_lookups: Union[builtins.str, django.db.models.query.Prefetch]) -> typing.Coroutine[Any, Any, None]
Runtime:
MISSING

error: django.db.models.aprefetch_related_objects is not present at runtime
Stub: in file /home/runner/work/django-stubs/django-stubs/django-stubs/db/models/__init__.pyi:244
def [_T <: django.db.models.base.Model] (model_instances: typing.Iterable[_T`-1], *related_lookups: Union[builtins.str, django.db.models.query.Prefetch]) -> typing.Coroutine[Any, Any, None]
Runtime:
MISSING

@sobolevn
Copy link
Member

Oh, I see. It is still a PR. Thanks for the pro-active approach! Ping me when it is released :)

@sobolevn sobolevn added the blocked Blocked by some other PR, discussion or third party dependency. label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked by some other PR, discussion or third party dependency.
Development

Successfully merging this pull request may close these issues.

2 participants