ORM expressions DEP

2014-10-27 Thread Anssi Kääriäinen
The ORM expressions DEP (https://github.com/django/deps/blob/master/drafts/orm_expressions.rst) is now ready for review. In brief, the DEP proposes an improved and publicly documented way to write expressions for the ORM. The expressions can be used in .annotate() calls. The DEP also proposes

Removing Unique Together Field (X-Post django-core-mentorship)

2014-10-27 Thread Bill Prin
Hi all, I wasn't sure which mailing list to put this on, so I cross-posted it with django-core-mentorship. Apologies if this isn't the right forum. I stumbled across an issue when removing a field from a unique_together constraint. Specifically, when you remove a field, and remove it from the

Re: Removing Unique Together Field (X-Post django-core-mentorship)

2014-10-27 Thread Tim Graham
Hi Bill, Yes, I believe this is a valid issue. I think it was reported in https://code.djangoproject.com/ticket/23614 Tim On Monday, October 27, 2014 12:32:10 PM UTC-4, Bill Prin wrote: > > Hi all, > > I wasn't sure which mailing list to put this on, so I cross-posted it with > django-core-men

Re: Removing Unique Together Field

2014-10-27 Thread Markus Holtermann
Hey Bill, I added a patch for the ticket Tim already linked to. This solves the problem for RemoveField operations, RenameField shouldn't be a problem since the generation of AlterUniqueTogether and AlterIndexTogether are already based on renamed fields. Tests welcome ;) /Markus On Mon, Oct 27,