Re: ORM difficulties

2015-12-05 Thread Josh Smeaton
> > Also, some random feature requests: > >- .values(‘stuff’, my_thing=Coalesce(‘thing’, ‘stuff’)) should work > > I thought this was already tracked but I couldn't find an existing ticket. So I created it: https://code.djangoproject.com/ticket/25871 Feel free to leave comments there if

Re: ORM difficulties

2015-12-05 Thread Aymeric Augustin
Hello, > On 5 déc. 2015, at 10:28, Raphael Gaschignard wrote: > > A behaviour that exemplifies this is that > queryset.annotate(foo=thing).annotate(bar=other_thing) is not the same as > queryset.annotate(foo=thing, bar=other_thing) given certain things. This goes > against the intuitive int

ORM difficulties

2015-12-05 Thread Raphael Gaschignard
Hi list, I want to preface this by saying I’m really glad to see the ORM where it is in 1.8, it’s gotten really far and I now think it’s not hopeless to imagine writing complex things in the ORM… So earlier this week I wrote a bit of a rant in the bug tracker about how annotate is con