You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#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:
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#35815: System check for default database values with expressions prohibits non-
expressions
--------------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: new
Component: Core (System checks) | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by Lily Foote):
I think either solution could work, but maybe there's a subtlety I don't
remember. I think wrapping all literals in `Value` is most likely to just
work.
--
Ticket URL: <https://code.djangoproject.com/ticket/35815#comment:3>
Django
unread,
Oct 8, 2024, 9:27:37 AM10/8/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#35815: System check for default database values with expressions prohibits non-
expressions
--------------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: new
Component: Core (System checks) | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by Tim Graham):
The issue I see with requiring `Value` wrapping is that third-party apps
may not know to do it and therefore run into compatibility issues with
backends with `supports_expression_defaults = False`. For the other
solution I suggested, I'm not sure we can make the `isinstance()`check
exhaustive for all possible non-expression types.
Perhaps it's more appropriate to replace `isinstance(self.db_default,
Value)` with `not hasattr(self.db_default, "resolve_expression")` to
reject expressions.
--
Ticket URL: <https://code.djangoproject.com/ticket/35815#comment:4>
Django
unread,
Nov 11, 2024, 8:32:11 AM11/11/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#35815: System check for default database values with expressions prohibits non-
expressions
--------------------------------------+------------------------------------
Reporter: Tim Graham | Owner: (none)
Type: Bug | Status: new
Component: Core (System checks) | Version: 5.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#35815: System check for default database values with expressions prohibits non-
expressions
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Tim
| Graham
Type: Bug | Status: assigned
Component: Core (System | Version: 5.0
checks) |
Severity: Normal | Resolution:
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-...@googlegroups.com
#35815: System check for default database values with expressions prohibits non-
expressions
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Tim
| Graham