#35223: Fields with db_default raise ValidationErrors when full_clean() called -------------------------------------+------------------------------------- Reporter: Brian Ibbotson | Owner: Damir Type: | Nafikov Cleanup/optimization | Status: assigned Component: Database layer | Version: 5.0 (models, ORM) | Severity: Release blocker | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Mariusz Felisiak):
* severity: Normal => Release blocker Comment: Bumping to a release blocker as `Model.full_clean()` crashes on some expressions, e.g. {{{ File "/django/tests/field_defaults/tests.py", line 175, in test_full_clean obj.full_clean() File "/django/django/db/models/base.py", line 1586, in full_clean self.clean_fields(exclude=exclude) File "/django/django/db/models/base.py", line 1641, in clean_fields setattr(self, f.attname, f.clean(raw_value, self)) File "/django/django/db/models/fields/__init__.py", line 830, in clean value = self.to_python(value) File "/django/django/db/models/fields/__init__.py", line 1620, in to_python parsed = parse_datetime(value) File "/django/django/utils/dateparse.py", line 114, in parse_datetime return datetime.datetime.fromisoformat(value) TypeError: fromisoformat: argument must be str }}} -- Ticket URL: <https://code.djangoproject.com/ticket/35223#comment:9> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018e18db1c76-82a9ef85-c4af-4b9a-bceb-9f07576958ba-000000%40eu-central-1.amazonses.com.