Re: DRF Tutorial Object Level Permissions

2018-01-09 Thread Xavier Ordoquy
Hi You should rename « permissions_classes » into « permission_classes » (note it is one letter shorter). Regads, Xavier, Linovia. > Le 10 janv. 2018 à 07:48, Craig Wilson a écrit : > > I'm working through the DRF tutorial and everything has been working fine up

DRF Tutorial Object Level Permissions

2018-01-09 Thread Craig Wilson
I'm working through the DRF tutorial and everything has been working fine up until topic *Object Level Permission. *I have modified my project according to the tutorial but I'm still able to delete and edit records related to other users. I created permissions.py file: from rest_framework

Re: Version 3.7.4 Released

2018-01-09 Thread Christian Ledermann
I get the same error upgrading from djangorestframework==3.6.3 to djangorestframework==3.7.7 from rest_framework import viewsets class APIBaseViewSet(viewsets.ViewSet): test snippet: self.request = request_factory.get('/') view = APIBaseViewSet.as_view({'get':

Auth from Django, not REST Framwork

2018-01-09 Thread Thomas Güttler
Our django based products have several APIs. Some use DRF, some not. Up to now the DRF based APIs use the authentication (authentication_classes) which gets explained here: http://www.django-rest-framework.org/api-guide/authentication/ The other APIs use Django. Things work, there are no