Fellow Reports - February 2022

2022-02-10 Thread Mariusz Felisiak
Week ending February 6, 2022 Released Django 4.0.2, 3.2.12, and 2.2.27. *Triaged: * https://code.djangoproject.com/ticket/33474 - Introduce slots definition to Variable and FilterExpression (accepted) https://code.djangoproject.com/ticket/33471 - AlterField operation should be noop when

Re: adding permission_required decorator for class based view

2022-02-10 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
> > If the mixins are the way to go, it should be reflected in the doc more > (especially in the introduction doc). If you want to make a PR with concrete edits, sure. Yes the example walks you through applying login_required as a decorator, but it does also say: These examples use

Re: adding permission_required decorator for class based view

2022-02-10 Thread Martin Milon
The introduction doc to class based view https://docs.djangoproject.com/en/4.0/topics/class-based-views/intro/ seems to prefer decorators, as it only illustrates the decorator side of things with code blocks, and doesn't illustrate mixins at all. If the mixins are the way to go, it should be