sounds like you didn't make a migration after the change.
On Tuesday, July 3, 2018 at 1:24:40 AM UTC-4, Rakhee Menon wrote:
>
> Yeah! but now I get this error
>
> 'required': 'This field is required.', 'null': 'This field may not be
> null.', 'invalid': 'Invalid data. Expected a dictionary, but g
Yeah! but now I get this error
'required': 'This field is required.', 'null': 'This field may not be
null.', 'invalid': 'Invalid data. Expected a dictionary, but got
{datatype}.'}
ipdb> serializer.errors
{'cast_weight': ['A valid number is required.']}
In models.py
cast_weight = models.FloatFi
You're not returning a response from the view method. this has nothing to
do with setting the value on the model field.
On Sunday, July 1, 2018 at 8:09:11 AM UTC-4, Rakhee Menon wrote:
>
> Hi,
>
> Please could anyone tell how to set null value for FloatField and when I
> tr
Hi,
Please could anyone tell how to set null value for FloatField and when I
try with null=True and blank=true I get this error
AssertionError: Expected a `Response`, `HttpResponse` or
`HttpStreamingResponse` to be returned from the view, but received a
``
Regards,
Rakhee
--
You received
4 matches
Mail list logo