I have a model like so: class Provider(models.Model): description = models.TextField(default='')
In recent Django 1.9 changes (this did not occur with 1.8.x), this causes the following traceback: Performing system checks... Traceback (most recent call last): File "/home/vagrant/.virtualenvs/myproject/lib/python3.4/site-packages/gevent/greenlet.py" , line 523, in run result = self._run(*self.args, **self.kwargs) File "/home/vagrant/.virtualenvs/myproject/src/django/django/utils/autoreload.py" , line 226, in wrapper fn(*args, **kwargs) File "/home/vagrant/.virtualenvs/myproject/src/django/django/core/management/commands/runserver.py" , line 116, in inner_run self.check(display_num_errors=True) File "/home/vagrant/.virtualenvs/myproject/src/django/django/core/management/base.py" , line 472, in check raise SystemCheckError(msg) django.core.management.base.SystemCheckError: SystemCheckError: System check identified some issues: ERRORS: businesses.Provider.description: (fields.E008) Invalid 'default' value: This field cannot be blank. images.ImageSet.hash: (fields.E008) Invalid 'default' value: This field cannot be blank. users.User.gender: (fields.E008) Invalid 'default' value: This field cannot be blank. System check identified 3 issues (0 silenced). Why is it that this was perfectly allowable before but not now? I have a data processing script that's pulling in data from an external source and creating instances with blank 'descriptions', it now doesn't work. I have to set `blank=True` on fields having this error, which I don't want to do (for form validation reasons). I believe the following links are pertinent: https://code.djangoproject.com/ticket/25417 https://github.com/django/django/pull/5303 James -- 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/c6ffdd4b-6147-43ff-be73-daef2e8149fe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.