Changes between Version 1 and Version 2 of Ticket #30581, comment 4
- Timestamp:
- Sep 20, 2019, 2:29:15 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30581, comment 4
v1 v2 1 1 FWIW I think the validation should be pushed to the database as much as possible. Trying to emulate constraint criterias in Python will hard if not impossible to implement in a correct way for all backends. 2 2 3 I'm not against an overridable hook but it should default to query the database (e.g. `'SELECT %s > %s', (age, 18)`).3 I'm not against an overridable hook but it should default to querying the database (e.g. `'SELECT %s > %s', (age, 18)`).