you can set default=None, that way you don't have to explicityly save
that value as none every time you save an object.

On Aug 21, 7:33 am, Torsten <torstenzan...@googlemail.com> wrote:
> Hi
>
> I simply want the DateTime to be set to null.
>
> payed_at = models.DateTimeField(null=True)
>
> but always get this as an error:
>
> IntegrityError at /admin/invoice/invoice/add/
> invoice_invoice.payed_at may not be NULL
>
> Thanks for help.
>
> Torsten

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to