#34013: order_by() crashes with annotated JSONObject fields.
-------------------------------------+-------------------------------------
     Reporter:  Eugene Morozov       |                    Owner:  Aman
                                     |  Pandey
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  orm, json, ordering  |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Aman Pandey):

 i think the issue is JSONObject returns a JSONField and since it's
 annotated JSONField doesn't get populated with the details of model it
 belongs to
 since field generally are called in a model so they get populated with
 details of that model , here JSONField didn't get any details , including
 "self. model"
 which causes  an error .

 but this is only happening with "___ " look up call in order_by , but not
 with overall call , so i am little confused where to look forward to , to
 fix it , JSONField, JSONObejct , order_by or Lookup ?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34013#comment:4>
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/01070183515e0a52-864cfaa4-7605-4854-a0ec-b52e2f77dcf1-000000%40eu-central-1.amazonses.com.

Reply via email to