Patryk Zawadzki
80547335c0
Don't try to access __slots__ during copy()
...
When subclassing Django will copy managers from the ancestor class. Copying in turn calls `copy.copy()` which checks whether the object uses `__slots__` or `__dict__`. This could result in the manager calling `self.get_queryset()` before all models get registered with the ORM.
2014-01-20 12:50:37 +01:00
funkybob
91b07079e0
Use legacy compatible approach
2014-01-14 15:05:03 +11:00
Carl Meyer
6dc8c9420f
Update Travis config to match updated tox.ini.
2014-01-13 09:49:05 -07:00
funkybob
cb362f4a12
Shorten test docstring
2014-01-13 16:49:18 +11:00
Carl Meyer
6512e3e00e
Remove trailing whitespace.
2014-01-10 16:29:59 -07:00
Carl Meyer
50210ef2af
Add changelog note.
2014-01-10 16:29:44 -07:00
Carl Meyer
07ea0d3a71
Minor docs cleanup.
2014-01-10 16:23:29 -07:00
Douglas Meehan
2082c7e3d5
edited typo
2014-01-10 17:09:01 -05:00
Douglas Meehan
2b089aee8d
updated manager docs
2014-01-10 17:07:49 -05:00
Douglas Meehan
1cf5454ee8
added documentation about manager mixins
2014-01-10 22:01:46 +00:00
Douglas Meehan
33c600e28c
edited class names
2014-01-10 16:18:10 -05:00
Douglas Meehan
9e024a14af
removed trailing whitespace
2014-01-10 16:15:42 -05:00
Douglas Meehan
aaf1fc8636
changed class names to be more descriptive
2014-01-10 16:06:08 -05:00
Douglas Meehan
55a15f7e55
Update managers.py
2014-01-09 16:58:51 -05:00
Douglas Meehan
72c8f0bc18
moved get_query_set = get_queryset from the mixin to the manager
2014-01-09 21:47:46 +00:00
Curtis Maloney
0e77c327f5
Update tests.py
2014-01-09 15:46:11 +11:00
Douglas Meehan
c787a98f21
removed GeoDjango specific code. Abstracted all managers
2014-01-08 17:19:00 +00:00
Douglas Meehan
e7c3f6b28e
edited doc string
2014-01-08 16:57:59 +00:00
Douglas Meehan
a1ffac9fa7
edited class names
2014-01-08 16:56:32 +00:00
Douglas Meehan
a1abc9bb8a
edited class names
2014-01-08 16:54:41 +00:00
Douglas Meehan
b529e576ff
added geo support for PassThroughManager
2014-01-08 16:46:39 +00:00
Curtis
6f30e88ba5
Attempt to carry over extras(select) values from parent
2014-01-08 23:46:00 +11:00
Carl Meyer
87f7209042
Bump version for dev.
2014-01-06 18:26:01 -07:00
Carl Meyer
788993f25d
Update supported Django/Python versions.
2014-01-06 18:25:10 -07:00
Carl Meyer
6b4a900ca0
Bump version to 2.0.
2014-01-06 18:22:24 -07:00
Carl Meyer
5e39bcd756
Remove special support for pickling PassThroughManager; apparently unnecessary in all supported Django/Python versions.
2014-01-06 18:18:42 -07:00
Carl Meyer
32aa781dc2
Merge branch 'master' into query-set-deprecated
...
* master:
Update tox.ini.
Update runtests.py for compatibility with Django 1.7.
Check for StatusModel field name conflicts correctly.
2014-01-06 16:06:31 -07:00
Carl Meyer
7d69dba669
Update tox.ini.
2014-01-06 16:04:15 -07:00
Carl Meyer
739e1b169a
Update runtests.py for compatibility with Django 1.7.
2014-01-06 16:04:07 -07:00
Carl Meyer
8ea75e53f4
Check for StatusModel field name conflicts correctly.
2014-01-06 16:03:44 -07:00
Thomas Schreiber
910bcc7830
backwards comptatible get_queryset, for Django < 1.6
2013-12-31 17:30:11 +01:00
Thomas Schreiber
5ae92dba27
fix get_query_set deprecationwarnings
2013-12-30 21:42:52 +01:00
Carl Meyer
0ddbbff1b7
Merge pull request #98 from BME-IK/move-timestamp-docs
...
Move TimeStampedModel docs to models.rst
2013-12-27 10:11:22 -08:00
Őry Máté
2a965bf753
move TimeStampedModel docs to models.rst
2013-12-27 11:29:42 +01:00
Carl Meyer
ccd7086112
Merge pull request #93 from tucarga/choices-name
...
Added choices_name parameter to StatusField
2013-11-14 12:13:46 -08:00
Carl Meyer
70cf0466ef
Merge pull request #94 from tucarga/contributing
...
Updated `CONTRIBUTING.rst`
2013-11-14 12:12:26 -08:00
Alejandro Varas
ae13fe2f41
Updated CHANGES.rst
2013-11-14 16:39:19 -03:00
Alejandro Varas
d2e2f51f9a
Updated CONTRIBUTING.rst
2013-11-14 16:27:32 -03:00
Alejandro Varas
452ac5cd21
Added choices_name parameter to StatusField
2013-11-14 16:12:31 -03:00
Carl Meyer
3b5c99b093
Merge pull request #89 from kezabelle/bugfix/named_onetoone
...
Allow InheritanceManager to work with manually specified OneToOnes
2013-10-26 16:59:23 -07:00
Keryn Knight
dd469a0e8f
Added test to explicitly demonstrate manually defined related_name
...
usage works in select_subclasses going forwards.
Also fixed fragility of 2 tests introduced in ae71f9080e
2013-10-26 16:34:21 +01:00
Keryn Knight
a270eef1fd
Fixed #59 - manually setting the parent relation
...
via a OneToOne should present the same behaviour
as the implicit ptr Django generates on
subclasses.
Thanks to Eran Rundstein for reporting the issue
and proposing the fix.
2013-10-26 15:53:15 +01:00
Keryn Knight
262455a60d
Update model tests to include our new InheritanceManagerTestChild3
...
as part of the emulation of select_subclasses.
Test still fails because of #59 .
2013-10-26 15:50:19 +01:00
Keryn Knight
ae71f9080e
Tests for #59 - a manually specified OneToOne should behave
...
the same as an implicit one.
2013-10-26 15:44:01 +01:00
Carl Meyer
06d3b7a5cf
Tweak line-continuation indentation.
2013-10-22 12:23:16 -06:00
Carl Meyer
65427407d6
Update changelog.
2013-10-22 12:15:17 -06:00
Carl Meyer
0cee79ecd7
Merge pull request #79 from kezabelle/feature/model_subclasses
...
Implementation for selecting subclasses by Model class rather than string.
2013-10-22 11:12:48 -07:00
Keryn Knight
1de58474c0
Implemented #44 - passing Model classes to InheritanceManager's select_subclasses
2013-10-21 21:47:58 +01:00
Carl Meyer
907014dab9
Flesh out the backwards-incompatibility note about indexing Choices.
2013-10-11 13:32:07 -06:00
Carl Meyer
06dddbfa82
Use full name in AUTHORS.
2013-10-11 13:29:47 -06:00