On Wednesday, February 3, 2016 at 12:26:26 AM UTC+1, Tim Graham wrote: > > There's a proposal to remove this behavior: > > > >>> obj.fk = None > ValueError('Cannot assign None: "Obj.fk" does not allow null values.) >
Yes please, if you do IntegerField(null=False) you can still do instance.xxx = None -- only ForeignKeys are weird and check during assignment… That said I thought we already removed that in 1.9 or 1.10? -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/e1a906de-bad7-478d-831d-551b785a0ef1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.