APIClient and accept_language header

2018-04-13 Thread Daviddd
Dear all, Using APIClient (not the requests based class) is it possible to pass as param the accept_language? class BaseAPITestCase(APITestCase): @classmethod def setUpTestData(cls): def _get_jwt_token(user_credentials): url_token_auth =

Re: Usage of read_only=True with default=serializers.CurrentUserDefault() in 3.8.2

2018-04-13 Thread Stuart George
Hi Carlton, Yeh thanks I saw the release notes 5 mins after I posted this then deleted the question. Thanks for responding, Stu On 12 April 2018 at 07:36, Carlton Gibson wrote: > Hi Stuart. > > This was a breaking change in v3.8. It was necessary in order to support

Re: Optional trailing slashes in Routers

2018-04-13 Thread Xavier Ordoquy
The solution proposed on SO looks sensible to me. I think the optional trailing slash is a bad idea because you won’t have a unique identifier for representation any longer. Regards, Xavier Ordoquy, Linovia; > Le 13 avr. 2018 à 11:39, German Prostakov a écrit : > > Is it

Re: Optional trailing slashes in Routers

2018-04-13 Thread Carlton Gibson
Hi German, > On 13 Apr 2018, at 11:39, German Prostakov > wrote: > > ...without such workaround… Given how simple the workaround is, I’d bet on “No” as to including such in DRF itself. (It’s just not worth the code and tests etc.) Maybe