Changes between Version 1 and Version 2 of Ticket #30581, comment 4


Ignore:
Timestamp:
Sep 20, 2019, 2:29:15 PM (5 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30581, comment 4

    v1 v2  
    11FWIW 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.
    22
    3 I'm not against an overridable hook but it should default to query the database (e.g. `'SELECT %s > %s', (age, 18)`).
     3I'm not against an overridable hook but it should default to querying the database (e.g. `'SELECT %s > %s', (age, 18)`).
Back to Top