Sunday, July 1, 2018

Re: Set null value for floatfield

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 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 `<class 'NoneType'>`

Regards,
Rakhee

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8ac3eacb-3847-401e-9528-e506d877ee9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment