Changes between Initial Version and Version 2 of Ticket #4660


Ignore:
Timestamp:
07/03/2007 10:17:10 AM (8 years ago)
Author:
adrian
Comment:

(Fixed formatting in description.)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4660

    • Property Needs documentation unset
    • Property Needs tests unset
    • Property Patch needs improvement unset
  • Ticket #4660 – Description

    initial v2  
    1 You can use relfield_id (one underscore) as an argument to create an object, and relfield__id (two underscores) as an argument to filter for an object. Unfortunately, with get_or_create, you don't know which one you will need. This means you can't safely specify the id field directly, and have to look up objects in order to use get_or_create.
     1You can use {{{relfield_id}}} (one underscore) as an argument to create an object, and {{{relfield__id}}} (two underscores) as an argument to filter for an object. Unfortunately, with {{{get_or_create}}}, you don't know which one you will need. This means you can't safely specify the id field directly, and have to look up objects in order to use get_or_create.
Back to Top