#28381: QuerySet.get/update_or_create() field validation prevents certain kinds 
of
descriptor use
-------------------------------------+-------------------------------------
     Reporter:  Kevin Christopher    |                    Owner:  Simon
  Henry                              |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  1.11
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  duplicate
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

 * cc: Adam (Chainz) Johnson (added)


Comment:

 Unfortunately `getattr_static` is only available in Python 3.2+ and 1.11
 still supported Python 2.7. I guess the patch could be adjusted to try to
 use `getattr_static` on Python 3.2 but I'm not sure it's worth it given
 the rare condition under which this occurs. Any thoughts on that Adam?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28381#comment:11>
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.c46e09e2bf761e25280c7cba1660fb23%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to