Changes between Initial Version and Version 2 of Ticket #4660


Ignore:
Timestamp:
Jul 3, 2007, 10:17:10 AM (17 years ago)
Author:
Adrian Holovaty
Comment:

(Fixed formatting in description.)

Legend:

Unmodified
Added
Removed
Modified
  • 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