Re: Basic understanding / custom field - point of access

2018-10-30 Thread Xavier Ordoquy
Hi, It’s a bit more complex than that. Content négociation along with renderers and parsers will move the data from the HTTP body into basic python types (int / floats / strings). Serializers will move those basic types from and to more complex ones (DateTimes, Decimals, Django models / queryse

Basic understanding / custom field - point of access

2018-10-30 Thread 'enricoba' via Django REST framework
Hi, I am fairly new to Django REST framework, but mid experienced with native Django. First I have a basic question regarding serializers (see picture - using the REST framework tutorial info). For my understanding the serializer transforms a Django queryset into a „readable“ JSON. Therefo