I don't feel there is any need for this feature in Django. As you mention
in the ticket, there are ways of approaching it used in DRF, there are
other ways in django-braces[0], I personally have my own taste in how to
handle it. The details will depend on the logic necessary - sometimes you
need to load objects to check permission, sometimes you don't. There is no
one size fits all approach.

[0]
http://django-braces.readthedocs.io/en/latest/access.html#permissionrequiredmixin

On 16 March 2017 at 20:10, <piotr.szpetkowski@pyquest.space> wrote:

> Hello, my first post here!
>
> This post is about a new feature request I'd like to propose and it's
> about permission classes (just like I've stated in topic) for CBVs. I've
> provided most of the technical information at [0], because I think that
> such information is more ticket-specific, however I'm not sure if what I
> did is a correct way, because docs say that feature requests should begin
> their lifespan at the mailing list. Well, anyway basically saying the
> reason to have it in core Django is to make managing "who can do what" in a
> simpler, faster and more expendable manner.
>
> I believe that everything that we need to discuss the matter is already at
> [0] so I'd be extremely happy if somebody would reply with some thoughts
> about it.
>
> [0] https://code.djangoproject.com/ticket/27950
>
> --
> 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/605eddf3-147a-4e39-a9fb-
> 4e40f055c4d6%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/605eddf3-147a-4e39-a9fb-4e40f055c4d6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMwjO1ECf3cgaZxxN6D530v-cig2m%3D3KdVfDuow1rZZrTQQirQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to