<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/regressiontests/custom_managers_regress/models.py, branch main</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=main</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2013-02-26T13:36:57Z</updated>
<entry>
<title>Merged regressiontests and modeltests into the test root.</title>
<updated>2013-02-26T13:36:57Z</updated>
<author>
<name>Florian Apolloner</name>
<email>florian@apolloner.eu</email>
</author>
<published>2013-02-26T08:53:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=89f40e36246100df6a11316c31a76712ebc6c501'/>
<id>urn:sha1:89f40e36246100df6a11316c31a76712ebc6c501</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[py3] Refactored __unicode__ to __str__.</title>
<updated>2012-08-12T12:44:40Z</updated>
<author>
<name>Aymeric Augustin</name>
<email>aymeric.augustin@m4x.org</email>
</author>
<published>2012-08-12T10:32:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=d4a0b27838c815af87698920cc4db7d2afd6f05b'/>
<id>urn:sha1:d4a0b27838c815af87698920cc4db7d2afd6f05b</id>
<content type='text'>
* Renamed the __unicode__ methods
* Applied the python_2_unicode_compatible decorator
* Removed the StrAndUnicode mix-in that is superseded by
  python_2_unicode_compatible
* Kept the __unicode__ methods in classes that specifically
  test it under Python 2
</content>
</entry>
<entry>
<title>Convert much of the regression tests to use absolute imports.  There's still work to be done though.</title>
<updated>2011-10-13T18:51:33Z</updated>
<author>
<name>Alex Gaynor</name>
<email>alex.gaynor@gmail.com</email>
</author>
<published>2011-10-13T18:51:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=d362c1546f8ad62811e5dee3cf0b43170e6e1c4c'/>
<id>urn:sha1:d362c1546f8ad62811e5dee3cf0b43170e6e1c4c</id>
<content type='text'>
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
</content>
</entry>
<entry>
<title>Migrated the custom_managers_regress doctests. Thanks to Paul McMillan.</title>
<updated>2010-09-26T09:55:41Z</updated>
<author>
<name>Russell Keith-Magee</name>
<email>russell@keith-magee.com</email>
</author>
<published>2010-09-26T09:55:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=e2ff11c6a365e5c96d1157876d4bc01ed5ecb8da'/>
<id>urn:sha1:e2ff11c6a365e5c96d1157876d4bc01ed5ecb8da</id>
<content type='text'>
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13866 bcc190cf-cafb-0310-a4f2-bffc1f526a37
</content>
</entry>
<entry>
<title>Fixed #2698 -- Fixed deleting in the presence of custom managers.</title>
<updated>2009-03-20T03:57:12Z</updated>
<author>
<name>Malcolm Tredinnick</name>
<email>malcolm.tredinnick@gmail.com</email>
</author>
<published>2009-03-20T03:57:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=fa89fdcd6b4a4ab4887740c0d0f4a73297a5b060'/>
<id>urn:sha1:fa89fdcd6b4a4ab4887740c0d0f4a73297a5b060</id>
<content type='text'>
A custom manager on a related object that filtered away objects would prevent
those objects being deleted via the relation. This is now fixed.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
</content>
</entry>
<entry>
<title>Use plain model.Manager, or suitable proxy, for model saving.</title>
<updated>2009-03-15T03:41:33Z</updated>
<author>
<name>Malcolm Tredinnick</name>
<email>malcolm.tredinnick@gmail.com</email>
</author>
<published>2009-03-15T03:41:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=7d9b29a56ddc1a793a02d55743c372a8256b97aa'/>
<id>urn:sha1:7d9b29a56ddc1a793a02d55743c372a8256b97aa</id>
<content type='text'>
We can't use the default manager in Model.save_base(), since we need to
retrieve existing objects which might be filtered out by that manager. We now
always use a plain Manager instance at that point (or something that can
replace it, such as a GeoManager), making all existing rows in the
database visible to the saving code.

The logic for detecting a "suitable replacement" plain base is the same as for
related fields: if the use_for_related_fields is set on the manager subclass,
we can use it. The general requirement here is that we want a base class that
returns the appropriate QuerySet subclass, but does not restrict the rows
returned.

Fixed #8990, #9527.

Refs #2698 (which is not fixed by this change, but it's the first part of a
larger change to fix that bug.)

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10056 bcc190cf-cafb-0310-a4f2-bffc1f526a37
</content>
</entry>
</feed>
