#32848: Bad error with invalid lookup on annotated field.
--------------------------------+--------------------------------------
     Reporter:  Gordon Wrigley  |                    Owner:  nobody
         Type:  Uncategorized   |                   Status:  closed
    Component:  Uncategorized   |                  Version:  3.1
     Severity:  Normal          |               Resolution:  needsinfo
     Keywords:                  |             Triage Stage:  Unreviewed
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  0
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+--------------------------------------

Comment (by Gordon Wrigley):

 If you do it without the annotation, so
 `MyModel.objects.values("my_duration__fred")` you "Cannot resolve keyword
 'fred' into field." which is what I'd expect. The field "bob" is legit,
 it's the lookup 'fred' that is bogus, so that's what I'd expect the error
 on.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32848#comment:3>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.ed7faf6936cc3e03a2906f238fcf9e66%40djangoproject.com.

Reply via email to