Changes between Initial Version and Version 2 of Ticket #4660
- Timestamp:
- Jul 3, 2007, 10:17:10 AM (17 years ago)
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.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.