On 14/03/2020 09.43, Tobias Bengfort wrote:
> Another option could be to add system checks for this: Instead of
> silently "fixing" missing code it would inform developers about missing
> decorators/mixins. (If I have time I might try to come up with a
> prototype of this.)

https://github.com/xi/django-utils/blob/feature-auth-check-views/utils/auth_check_views.py

The major issue with this approach is that there are many ways to check
`user.is_authenticated`, so it is hard to validate that in static analysis.

tobias

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/8bbc0821-75a7-76a7-a3da-911b5e451d2b%40posteo.de.

Reply via email to