This means that it's not possible to with a column named "defaults".
Perhaps it would be better to accept a dict in args, since we reserve
kwargs for column names ?
--
Ticket URL: <https://code.djangoproject.com/ticket/29211>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => wontfix
Comment:
{{{update_or_create()}}} uses same parameters as {{{get_or_create()}}},
and from the {{{get_or_create()}}} docs:
> If you have a field named defaults and want to use it as an exact lookup
in {{{get_or_create()}}}, just use {{{'defaults__exact'}}}, like so:
> {{{#!python
> Foo.objects.get_or_create(defaults__exact='bar', defaults={'defaults':
'baz'})
> }}}
Closing as won't fix.
--
Ticket URL: <https://code.djangoproject.com/ticket/29211#comment:1>