Re: Modify get_or_create() to use field lookups parameters for values

2014-07-26 Thread Gavin Wahl
That is how it works now. On Sat, Jul 26, 2014 at 6:38 AM, Mattias Linnap wrote: > One way to make it work in presence of field lookups would be to demand > that the full values of mandatory fields must be present in the defaults > dictionary. > > For example: > Model.objects.get_or_create(name

Re: Modify get_or_create() to use field lookups parameters for values

2014-07-26 Thread Mattias Linnap
One way to make it work in presence of field lookups would be to demand that the full values of mandatory fields must be present in the defaults dictionary. For example: Model.objects.get_or_create(name_iexact='hello', defaults={'name': 'Hello', 'slug': 'foo'}) or Model.objects.get_or_create(p

Re: 1.7 release status (RC2 coming soon)

2014-07-26 Thread Schmitt, Christian
Currently I don't think there is a need for a second RC yet. As already said you could easily install via Git (maybe we should add that to the docs) Like: "If you want to test the latest development version of Django just use pip and git to install it: pip install git+https://github.com/django/