Rinat Shigapov
e9e57e096f
deny methods for queryset copy
2012-11-08 12:24:17 +04:00
Javier García Sogo
575a5e1340
avoid plain except
2012-11-05 13:43:42 +01:00
Carl Meyer
2376c931ab
Update PassThroughManager docstring to match README docs; thanks atreanor.
2012-09-27 09:48:04 -06:00
Antti Kaihola
21371e3ea4
Added missing imports for UpdateOrCreateMixin
2012-08-27 15:21:52 +03:00
Javier Garcia Sogo
6ab6da083c
patch to issue#16
2012-07-06 22:12:58 +02:00
Antti Kaihola
c83c14c46f
Added an UpdateOrCreateMixin for creating custom managers and querysets which have an .update_or_create() method (see Django ticket #3182 ).
2012-06-08 16:47:28 +03:00
Carl Meyer
4746180c4d
Improved fix for annotations and InheritanceQuerySet. Thanks Facundo Gaich.
2012-01-03 16:47:33 -07:00
Carl Meyer
c35746a445
Fixed annotation of InheritanceQuerySets. Thanks Jeff Elmore.
2012-01-03 15:47:41 -07:00
Carl Meyer
8c6af71713
Updated PassThroughManager.for_queryset_class for less ambiguous behavior in case of incorrect usage.
2011-12-05 17:08:51 -07:00
Ryan Kaskel
6afa9d566d
Add convenience method to PassThroughManager.
2011-12-04 13:57:16 +00:00
smacker
9ac5877d29
add get_subclass method
2011-10-26 12:01:37 +06:00
Carl Meyer
5c5abdce23
Added use_for_related_fields=True to InheritanceManager. Fixes #8 . Thanks munhitsu for the report.
...
Note that the tests added for this feature pass even without the change to
InheritanceManager, because use_for_related_fields is broken in Django and
always acts as if True for reverse FKs and M2Ms.
(http://code.djangoproject.com/ticket/14891 )
2011-04-16 16:19:55 -05:00
Carl Meyer
69d0985db1
Started deprecation for manager_from, InheritanceCastModel, and Django 1.1 support.
2011-04-16 14:51:14 -05:00
Carl Meyer
7c19b761e2
Merged in fix for Django 1.1 recursion error from Paul McLanahan.
2011-03-30 10:20:37 -04:00
Paul McLanahan
d8798fb784
Fixed a recursion error in Django 1.1
2011-03-29 21:57:49 -04:00
Carl Meyer
36b99304c2
Merged in PassThroughManager from Paul McLanahan.
2011-03-29 13:10:50 -04:00
zyegfryed
ae64c23b39
Fixed related subclasses parsing. Was raising AttributeError on FileField.
2011-03-29 14:59:50 +02:00
Paul McLanahan
04c848e8c7
Added tests for PassThroughManager.
2011-03-09 14:44:10 -05:00
Paul McLanahan
c624d7a301
Added PassThroughManager to managers.
...
Added me to authors.
2011-03-08 13:52:32 -05:00
Carl Meyer
ac36cbf56c
Added InheritanceManager, contributed by Jeff Elmore.
2010-11-23 12:48:23 -05:00
Carl Meyer
396dd9274f
use manager_from for inheritance-casting
2010-10-05 09:01:26 -04:00
Gregor Müllegger
216db6c098
Creating a custom QuerySet subclass for InheritanceCastModel to provide a way to batch cast a queryset of parents into child types. It's (2 + m) queries instead of (1 + n * 2) now (n: number of returned objects, m: number of different types in the queryset).
2010-10-01 20:43:22 +02:00
Carl Meyer
5da38ee0c6
manager_from bugfix from George Sakkis; fixes #1
2010-08-16 17:58:16 -04:00
Carl Meyer
afafdd2bf9
make manager_from Django 1.1 compatible
2010-07-30 22:45:45 -04:00
Carl Meyer
aed583f763
added manager_from (thanks George Sakkis)
2010-07-30 22:09:46 -04:00
Carl Meyer
7703512c7f
0.3.0
...
--HG--
extra : convert_revision : carl%40dirtcircle.com-20090730211136-ywu7dfqfmsodkc1x
2009-07-30 17:11:36 -04:00