Well, one can call the Zen of python, about just exactly that. explicit is better than implicit.
In this case, explicit becomes a problem for getting used to it, versus implicit that becomes a strange behavior/bug/wtf when you don't expect it. I'll rather see a ValueError if this is something the model field can't afford (Doesn't do it already?) Cheers, E. — Sent from Mailbox On Thu, Sep 17, 2015 at 12:36 AM, Paulo Maciel <paulosouzamac...@gmail.com> wrote: > It would be better if IntegerField, DateField, etc did not have to leave > explicit null=True when blank is True. > In my opinion it might look like: > class Abc(models.Model): > number = models.IntegerField(blank=True) # doesn't need leave explicit > null=True, it's should be default if blank is True > What do you think? > -- > 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 http://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/7ced3a69-fd04-4ac9-9334-8fde61726810%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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 http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1442460232075.4cd4456e%40Nodemailer. For more options, visit https://groups.google.com/d/optout.