Changes between Version 1 and Version 2 of Ticket #17653, comment 11
- Timestamp:
- Feb 13, 2012, 2:55:59 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17653, comment 11
v1 v2 11 11 `get_db_prep_lookup``` 12 12 }}} 13 so maybe we should add note that `get_db_prep_ prep` do validation and may raise error?13 so maybe we should add note that `get_db_prep_value` do validation and may raise error? 14 14 15 15 Note that both patches (mine and akaariai's) works for `AutoField` as well as for `ForeignKey` and `ManyToManyField`, because related fields calls `AutoField.get_db_prep_value` during executing their `get_db_prep_value` method (see https://code.djangoproject.com/browser/django/trunk/django/db/models/fields/related.py#L962).