#35815: System check for default database values with expressions prohibits non-
expressions
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: new
Component: Core (System | Version: 5.0
checks) |
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Tim Graham):
I'm not sure if the appropriate solution is to add `Value` wrapping to all
literal defaults in Django's test models or to modify the
[https://github.com/django/django/blob/c334c1a8ff4579cdb1dd77cce8da747070ac9fc4/django/db/models/fields/__init__.py#L395
isinstance(db_default, Value)] check to also accept int/float, str, etc.
--
Ticket URL: <https://code.djangoproject.com/ticket/35815#comment:1>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107019257c03a0b-43a2bcc6-67fd-48f5-ad82-e5a9ee2be696-000000%40eu-central-1.amazonses.com.