Hi,
I have defined a custom field instead of BooleanField in my project.
Custom field is defined in model with no default value , example:
class MyModel(models.Model):
is_folder = HibernateBooleanField()
where HibernateBooleanField is the custom calss for overriding "to_python",
"from
Hi - thanks, yes, that makes sense, but in following the tutorial I must
have written something out of order. Have moved past this in the tutorial
now (using ModelSerializer) but may come back to this.
Thanks for your response.
On Monday, 19 June 2017 15:10:19 UTC+1, Xavier Ordoquy wrote:
>
> H
Hi,
serializer.data should only be used for serialization.
If you try to access it during deserialization, you’ll get a warning from the
framework:
serializer = SnippetSerializer(snippet)
serializer.data
or
serializer = SnippetSerializer(data=data)
serializer.is_valid()
serializer.validated_dat
Hi - just come to DRF; exploring for an upcoming project.
Is there an oversight in the tutorial
(http://www.django-rest-framework.org/tutorial/1-serialization/) or am I
doing something wrong?
The framework guards against calling serializer.data,but states that you do
so in the tutorial.
I see
I have just implemented the DRF quick start tutorial and then tried to add
RAML support, following the steps
here: https://github.com/tomchristie/django-rest-raml
When I access the /raml page I get a js error: TypeError: Cannot read
property 'buffer' of undefined. And a blank page.
Any idea wh