Branch: refs/heads/stable/1.5.x
  Home:   https://github.com/django/django
  Commit: f4132140f52c88b67d11743d4062a9d455959ffc
      
https://github.com/django/django/commit/f4132140f52c88b67d11743d4062a9d455959ffc
  Author: Anssi Kääriäinen <[email protected]>
  Date:   2013-01-22 (Tue, 22 Jan 2013)

  Changed paths:
    M django/db/models/fields/related.py
    M tests/modeltests/custom_managers/models.py
    M tests/modeltests/custom_managers/tests.py

  Log Message:
  -----------
  [1.5.x] Fixed #19652 -- Fixed .none() regression in related fields

The regression was caused by using .none() when querying for related
models, and the origin field's value was None. This resulted in missing
custom related manager subclass as .none() returns plain QuerySet.

This isn't backport from master, in master .none() correctly preserves
the queryset's class.

Patch provided by Simon Charette, with some minor polish by committer.



-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to