I don't think the current fields are so bad or nonsensical that it warrants a change. Also, consider that every Django user would have to learn how to use a new permissions setup.
If you don't like the default permissions structure, use a custom user model. On Friday, March 24, 2017 at 7:31:32 AM UTC-4, guettli wrote: > > I know this is a crazy idea, and it will get the "won't fix" tag very soon. > > Nevertheless I want to speak it out. > > My use case: Get a queryset of users who have a given permission. > > I would like to get this with a simple SQL statement. > > At the moment this query is complex and results in performance issues, > since > several outer joins get created. See: > https://groups.google.com/forum/#!topic/django-users/lUGkZybXllM > > is_superuser and is_staff could be changed to permissions easily. > > It's different with is_active. But again: a simple SQL to get all users > which have a given permission is my goal. > > I personally could live without is_active: Just remove all permissions for > this user. > > If you don't like dropping all perms to make a user inactive since you > want to switch back and forward between active and inactive ... > then this a different (bigger) problem: switching back and forward between > states. Why not solve > this for all models (not just User instances)? But this is a different > topic :-) > > I know the road to deprecate these three friends would be hard since a lot > of code uses them. > > What do you think? > > > > > > > -- 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 post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/083e3eb0-d76c-4fb7-9f26-ce60ee5f9ef5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.