#20413: respect Query.get_meta()
----------------------------------------------+----------------------
     Reporter:  carbonXT                      |      Owner:  carbonXT
         Type:  Bug                           |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  master
     Severity:  Normal                        |   Keywords:
 Triage Stage:  Unreviewed                    |  Has patch:  0
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+----------------------
 In `django.db.models.sql.query.Query` there's a `get_meta(self)` method
 that's present to aid in subclassing `Query`. See
 
https://github.com/django/django/blob/master/django/db/models/sql/query.py#L206.
 Problem is, `Query` itself as well as its subclasses aren't using this
 method everywhere they could be... rather they're going around it and
 accessing its default return value directly. This breaks subclassing
 `Query` and overriding `get_meta`.

 I will submit a pull request shortly with mods to `Query` and friends to
 respect this method.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20413>
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to