Trey Hunner
|
c2f3bd8a77
|
Fix deprecated assertion methods in tests
|
2013-04-12 17:13:36 -07:00 |
|
Trey Hunner
|
396bb7ac3f
|
Remove with_statement import (was needed for 2.5)
|
2013-04-12 17:13:36 -07:00 |
|
Trey Hunner
|
32bb718107
|
Remove reduntant "as" in import
|
2013-04-12 17:13:35 -07:00 |
|
Trey Hunner
|
e6293d9b0c
|
Remove datetime imports unused by Django 1.4+
|
2013-04-12 17:13:31 -07:00 |
|
Trey Hunner
|
f7f7cc0953
|
Fix repr tests for Python 2 (no string comparison)
|
2013-04-12 17:13:31 -07:00 |
|
Trey Hunner
|
4f2673e6a4
|
Fix str/unicode problems in Python 3
Changes:
- Use unicode_literals from the future for Python 2.6.5+
- Use six's text_type for proper unicode use in Python 2/3
|
2013-04-12 14:16:42 -07:00 |
|
Trey Hunner
|
81c7e40e60
|
Fix iterator/list problems for Python 3 support
|
2013-04-12 14:16:42 -07:00 |
|
Carl Meyer
|
4ee0c39db3
|
Add tests for StatusField no_check_for_status.
|
2013-04-10 12:52:53 -06:00 |
|
Trey Hunner
|
59e484e17f
|
Fix StatusField bug
Fixes #29
|
2013-04-09 14:28:53 -07:00 |
|
Trey Hunner
|
2769e79796
|
Fix BooleanField default (for Django trunk)
|
2013-03-27 22:43:21 -07:00 |
|
Trey Hunner
|
4156fa40e9
|
Add test for ModelTracker before first model save
|
2013-03-27 16:59:42 -07:00 |
|
Trey Hunner
|
cddcbd4e42
|
ModelTracker: pass kwargs to parent save correctly
Fixes usage of update_fields in save()
|
2013-03-27 16:59:42 -07:00 |
|
Trey Hunner
|
98016dbd50
|
ModelTracker: check DB after using update_fields
|
2013-03-27 16:59:42 -07:00 |
|
Trey Hunner
|
d24dbc6c38
|
Fix ModelTracker for obj.save(update_fields=[...])
|
2013-03-27 16:59:42 -07:00 |
|
Trey Hunner
|
d9c415c5cd
|
Add ModelTracker test for save(update_fields=[...])
|
2013-03-27 16:59:42 -07:00 |
|
Carl Meyer
|
147fdf5d89
|
Remove silly uses of setattr.
|
2013-02-21 16:31:29 -07:00 |
|
Felipe Prenholato
|
cce804da4e
|
Assert that StatusField respects default arguments.
|
2013-02-21 17:08:15 -03:00 |
|
Trey Hunner
|
cf153f3c06
|
Add test for ModelTracker descriptor on class
|
2013-02-18 20:13:39 -08:00 |
|
Trey Hunner
|
335500018a
|
Make `from model_utils import ModelTracker` work
|
2013-02-18 20:09:08 -08:00 |
|
Trey Hunner
|
b1979a52b3
|
Add tests for multiple model trackers
|
2013-02-18 20:06:52 -08:00 |
|
Trey Hunner
|
7ac6e8a81c
|
Add tests for ModelTracker.current method
|
2013-02-18 17:33:26 -08:00 |
|
Trey Hunner
|
45ac3bd03f
|
Fix return value of ModelTracker.current pre-save
|
2013-02-18 17:32:30 -08:00 |
|
Trey Hunner
|
1ae2effc22
|
Merge ModelTracker and descriptor classes
|
2013-02-18 16:36:05 -08:00 |
|
Trey Hunner
|
a68649c9e7
|
Rename current_fields to current
|
2013-02-18 16:26:54 -08:00 |
|
Trey Hunner
|
f4512642cb
|
Remove unnecessary use of setattr
|
2013-02-18 16:22:11 -08:00 |
|
Trey Hunner
|
676424e388
|
Move ModelTracker to tracker module
|
2013-02-18 16:21:14 -08:00 |
|
Trey Hunner
|
c528a347e0
|
Add ModelTracker with tests
|
2013-02-16 14:52:31 -08:00 |
|
Carl Meyer
|
579abf8e66
|
Fix calling create() on a related manager based on PassThroughManager.
|
2013-02-12 14:05:31 -07:00 |
|
Carl Meyer
|
cf2c97b620
|
Avoid overriding prior calls to select_related in select_subclasses.
|
2013-02-01 22:53:11 -07:00 |
|
Carl Meyer
|
93a1a44ee7
|
Updates to multi-level support for InheritanceManager.
|
2013-02-01 22:38:14 -07:00 |
|
Ivan Virabyan
|
937b3e018f
|
Support for multi-level inheritance in InheritanceManager
|
2013-01-31 18:27:16 +04:00 |
|
Carl Meyer
|
246fb81813
|
Revert addition of UpdateOrCreateMixin; reaches 100% test coverage.
|
2013-01-27 14:16:58 -08:00 |
|
Carl Meyer
|
983fab0341
|
Clean up some uses of hasattr; no need to support 1.1 any longer.
|
2013-01-27 13:41:03 -08:00 |
|
Carl Meyer
|
6ae66e0153
|
Removed a bunch of deprecated code.
|
2013-01-27 13:30:31 -08:00 |
|
Carl Meyer
|
a9ac3685fb
|
Removed deprecated ChoiceEnum; moved Choices out of __init__.py.
|
2013-01-27 13:19:45 -08:00 |
|
Carl Meyer
|
f7f54a03b0
|
Enable pickling PassThroughManager in Django 1.5.
|
2013-01-26 22:10:14 -08:00 |
|
Carl Meyer
|
a76006a3b2
|
Merge UpdateOrCreateMixin.
|
2013-01-26 17:20:52 -08:00 |
|
Carl Meyer
|
05f1dc97b3
|
Set use_for_related_fields=True on QueryManager.
|
2013-01-26 17:09:16 -08:00 |
|
Carl Meyer
|
ec1870c98a
|
Merge pull request #19 from DXist/master
Extra deny methods for PassThroughManager
|
2013-01-26 17:05:15 -08:00 |
|
Carl Meyer
|
41607c0b56
|
Resolve duplication between two pull requests for Choices.__len__.
|
2013-01-26 17:04:15 -08:00 |
|
Carl Meyer
|
4217dbd7fe
|
Merge pull request #16 from ryankask/choices-len
__len__ method for Choices
|
2013-01-26 17:01:06 -08:00 |
|
Carl Meyer
|
aa8c79eeb4
|
More straightforward, efficient implementation for InheritanceQuerySet.
|
2013-01-26 16:46:51 -08:00 |
|
Carl Meyer
|
8808aa05b8
|
Merged in jgsogo/django-model-utils (pull request #5)
patch to issue #16
|
2013-01-26 16:40:26 -08:00 |
|
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 |
|
James Oakley
|
9ea6605226
|
Add __len__() method to Choices
|
2012-10-30 11:01:57 -07: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 |
|