Re: Permission classes for Class Based Views

2017-03-20 Thread Paweł Święcki
Good idea. I use permission classes in DRF and I would use them in Django. Using `|` for "or" is something to be discussed, though. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this

Re: Permission classes for Class Based Views

2017-03-16 Thread Marc Tamlyn
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

Permission classes for Class Based Views

2017-03-16 Thread piotr . szpetkowski
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