2013/11/7 Elyézer Rezende <[email protected]> > Setting null=True in the field definition and doing model.field = None > doesn't do this? >
At the model layer, yes. But if you're using a ModelForm — like the admin does — then you need some code to convert empty strings to None. I believe that's the problem Vlastimil wants to solve. -- Aymeric. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CANE-7mXeG22cFP1Z5B1rs9evE66RiPMLGjSPz3RuhPLy6HFwGA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
