|Reported by:||carbonXT||Owned by:||carbonXT|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||no||Needs documentation:|
|Needs tests:||Patch needs improvement:|
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.