Ticket #11438: 11438.diff

File 11438.diff, 794 bytes (added by Tim Graham, 15 years ago)
  • docs/howto/custom-model-fields.txt

     
    464464list when you were expecting an object, for example) or a ``TypeError`` if
    465465your field does not support that type of lookup. For many fields, you can get
    466466by with handling the lookup types that need special handling for your field
    467 and pass the rest of the :meth:`get_db_prep_lookup` method of the parent class.
     467and pass the rest to the :meth:`get_db_prep_lookup` method of the parent class.
    468468
    469469If you needed to implement ``get_db_prep_save()``, you will usually need to
    470470implement ``get_db_prep_lookup()``. If you don't, ``get_db_prep_value`` will be
Back to Top