#21738: models.F does not accept fields generated via QuerySet.extra
-------------------------------------+-------------------------------------
     Reporter:  tonnzor              |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |               Resolution:  wontfix
     Severity:  Normal               |             Triage Stage:
     Keywords:                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by akaariai):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 I agree that adding more hacks for .extra() isn't a good idea. So, I'll
 wontfix this.

 We could possibly make .extra() to automatically do
 .annotate(new_is_active=SQL('CASE WHEN id > 100 THEN 1 ELSE 0 END')), but
 this is pending on getting .annotate() support for that.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21738#comment:2>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.3550480d7734cbbf0cd9db5abb7f7cc9%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to