#15028: 1.2.4 breaks queryset.extra(select={'__double_underscore_field': ...}) ------------------------------------------+--------------------------------- Reporter: cdestigter | Owner: nobody Status: new | Milestone: Component: Database layer (models, ORM) | Version: 1.2 Keywords: | Stage: Unreviewed Has_patch: 1 | ------------------------------------------+--------------------------------- In 1.2.3 this worked fine:
{{{ qs = qs.extra(select={'__foo': "1"}).order_by('__foo') }}} Now in 1.2.4 I get: {{{ FieldError at /test/ Cannot resolve keyword '' into field. Choices are [...] }}} I believe the solution is to change [http://code.djangoproject.com/browser/django/branches/releases/1.2.X/django/db/models/sql/compiler.py#L371 django/db/models/sql/compiler.py#L371] {{{ pieces = name.split(LOOKUP_SEP) }}} to {{{ pieces = filter(None, name.split(LOOKUP_SEP)) }}} -- Ticket URL: <http://code.djangoproject.com/ticket/15028> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.