PermissionRequiredMixin not importable before apps ready?

2023-02-07 Thread Christian González
Hi devs, I have a weird problem that I first thought is on my side. But after thinking about it, it could be fixed in Django with a no-brainer and backwards-compatible. But before filing a bug, I'd like to ask here for your opinion - it may be that I am stil wrong. I use a custom view mixin

Re: Async wrappers in contrib packages

2023-02-07 Thread Carlton Gibson
Hi Jon. Thanks for this. I think your use-case is reasonable, and that you're basically on the right track. If you were to add test cases to your PoC, there's certainly a case for looking seriously at it. It should be reasonable to keep pushing the interfaces down one layer at a time. (See commen

Re: PermissionRequiredMixin not importable before apps ready?

2023-02-07 Thread charettes
Hello Christian, Could you possibly provide a minimal project setup that reproduces your issue? >From what I can see here you're running into this issue because the `django.contrib.auth.views` module calls `get_user_model` at initialization time but the latter has been passing `require_ready=F