Changes between Version 1 and Version 2 of Ticket #17653, comment 11


Ignore:
Timestamp:
Feb 13, 2012, 2:55:59 PM (13 years ago)
Author:
Christopher Medrela

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17653, comment 11

    v1 v2  
    1111        `get_db_prep_lookup```
    1212}}}
    13 so maybe we should add note that `get_db_prep_prep` do validation and may raise error?
     13so maybe we should add note that `get_db_prep_value` do validation and may raise error?
    1414
    1515Note 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).
Back to Top