Commit graph

478 commits

Author SHA1 Message Date
Carl Meyer
3f9b1cfac8 Fix select_subclasses for Django 1.8. 2015-01-27 16:48:06 -07:00
Carl Meyer
3110794afc Fix 'add_*_manager' signal handlers for Django 1.8+. 2015-01-27 16:43:29 -07:00
Carl Meyer
7012e16cc8 Add Dmytro Kyrychuk to AUTHORS file. 2015-01-26 22:28:55 -07:00
Carl Meyer
d91725497e Merge pull request #159 from orgkhnargh/dependencies_version_bump
Dependencies version bump, clean up tox.ini and .travis.yml.
2015-01-26 22:23:25 -07:00
Dmytro Kyrychuck
6944bdd218 added python3.4 to env list 2015-01-27 05:34:39 +02:00
Dmytro Kyrychuck
0bb09b419c django 1.8 builds is allowed to fail 2015-01-27 05:25:30 +02:00
Dmytro Kyrychuck
63ba203bda added django 1.8 envs 2015-01-27 05:15:52 +02:00
Dmytro Kyrychuck
971ae30151 env list in .travis.yml will now be sorted 2015-01-27 05:15:32 +02:00
Dmytro Kyrychuck
c460054180 included tox envs into .travis.yml 2015-01-27 03:57:12 +02:00
Dmytro Kyrychuck
b03c7fd5b2 travis-ci now runs tox 2015-01-27 03:54:54 +02:00
Dmytro Kyrychuck
271d3bfa27 updated tox.ini to use generative envlist 2015-01-27 02:07:23 +02:00
Dmytro Kyrychuck
8796f05ae3 added django 1.7.3 to build matrix (fixes #152) 2015-01-27 01:05:29 +02:00
Dmytro Kyrychuck
be55ed7427 bumped django 1.6.1 to 1.6.10 2015-01-27 00:59:10 +02:00
Dmytro Kyrychuck
a0ffbf0b39 bumped django 1.5.5 to 1.5.12 2015-01-27 00:57:40 +02:00
Dmytro Kyrychuck
254e5493c6 bumped django 1.4.10 to 1.4.18 2015-01-27 00:34:45 +02:00
Carl Meyer
b54d4652a3 Update AUTHORS/changelog. 2014-10-29 16:20:02 -06:00
Carl Meyer
fac4e077fc Merge pull request #157 from ad-m/patch-1
Fix GH-156: Django 1.7 migrations compatibility for SplitField.
2014-10-29 16:18:11 -06:00
ad-m
50caabdd2e Fix #156 issue 2014-10-29 00:27:10 +01:00
Carl Meyer
9786672361 Remove dead code branch. 2014-09-22 12:49:35 -06:00
Carl Meyer
67ec6e4b53 Update changelog. 2014-09-22 12:12:39 -06:00
Carl Meyer
ee05f01eff Merge pull request #151 from bboogaard/deferred-tracker-bug-2
Fix bug with FieldTracker and deferred fields.
2014-09-22 12:06:32 -06:00
bboogaard
31170692a5 Update CHANGES.rst 2014-09-01 09:30:29 +02:00
bboogaard
ac0957e3ec Update AUTHORS.rst and CHANGES.rst 2014-08-19 10:42:41 +02:00
bboogaard
041ef6b838 Keep track of deferred fields on model instance
Instead of on FieldInstanceTracker instance

Signed-off-by: bboogaard <b.boogaard@auto-interactive.nl>
2014-08-19 10:29:03 +02:00
Carl Meyer
54d915bd4a Bump version to 2.3a1. 2014-07-31 18:57:29 -06:00
Carl Meyer
c62fe9446d Add Changelog entry for revert of GH-130; bump version to 2.2. 2014-07-31 18:16:15 -06:00
Carl Meyer
a127e32217 Revert "Use a signal handler instead of patching save."
This reverts commit 3496fe4291.
2014-07-31 18:08:24 -06:00
Carl Meyer
2b1c7e3757 Merge branch '2.1.x'
* 2.1.x:
  Bump version to 2.1.2a1.
  Bump version to 2.1.1.
  ASCII-fold changelog, again. Fixes GH-141.
  Bump version to 2.1.1a.

Conflicts:
	CHANGES.rst
	model_utils/__init__.py
2014-07-28 10:03:53 -06:00
Carl Meyer
19c9c380df Bump version to 2.1.2a1. 2014-07-28 10:02:39 -06:00
Carl Meyer
bd3787a4a8 Bump version to 2.1.1. 2014-07-28 10:00:40 -06:00
Carl Meyer
abd47ed406 ASCII-fold changelog, again. Fixes GH-141. 2014-07-28 09:59:29 -06:00
Carl Meyer
4ed7eb05e5 Bump version to 2.1.1a. 2014-07-28 09:59:23 -06:00
Carl Meyer
6def1b416f ASCII-fold changelog, again. Fixes GH-141. 2014-07-28 09:55:18 -06:00
Carl Meyer
a0ba93f8c2 Bump version to 2.2a1. 2014-07-25 10:00:46 -06:00
Carl Meyer
24fa8945bb Bump version to 2.1.0. 2014-07-25 09:52:55 -06:00
Carl Meyer
f8a7c50c0a Silence warning about MIDDLEWARE_CLASSES when running tests under 1.7. 2014-07-25 09:51:50 -06:00
Trey Hunner
afe99ddd18 Note pickle support for FieldTracker in change log 2014-05-13 14:29:58 -07:00
Trey Hunner
6821051141 Note FieldTracker signal rules in documentation 2014-05-13 14:22:02 -07:00
Matthew Schinckel
3496fe4291 Use a signal handler instead of patching save.
References #83.

Instead of patching the save method of a tracked model class, we can use
a signal handler on post_save, which means we can still pickle our model
class.

Note we can't just listen for the signal from the class we have, but
instead listen for all post_save signals. This means we actually install
a new signal handler for each tracked model class, which fires on all
model save occurrences (and returns immediately if this handler doesn't care).

We probably could improve this to have a registry of tracked models, or
something, that allows us to just install one signal handler, and filter
according to membership.
2014-05-12 14:32:59 +09:30
Carl Meyer
fdf20e9d13 Merge pull request #129 from folz/django-1.7-migrations
Django 1.7 migrations support for MonitorField and StatusField
2014-04-28 11:36:15 -06:00
Rodney Folz
2905d1a307 Fix bug where you could only run makemigrations once without error. 2014-04-25 14:17:42 -07:00
Rodney Folz
8530568692 Add me to AUTHORS 2014-04-25 13:42:05 -07:00
Rodney Folz
1f2abd85ba Update with changes made in this PR 2014-04-25 13:41:56 -07:00
Rodney Folz
85a9f8e6b1 Fix "model '%s' must have a %s choices class attribute" error on migrations. 2014-04-25 13:32:49 -07:00
Rodney Folz
db5e1f99fc Fix "MonitorField requires a "monitor" argument" 2014-04-23 19:55:39 -07:00
Rodney Folz
f02b0912b2 Failing test for Django 1.7 makemigrations
======================================================================
ERROR: test_migrate (model_utils.tests.tests.MigrationsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/user/projects/django-model-utils/model_utils/tests/tests.py", line 42, in test_migrate
    call_command('migrate', fake=True)
  File "/home/user/projects/django-model-utils/.tox/py27-trunk/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 167, in call_command
    return klass.execute(*args, **defaults)
  File "/home/user/projects/django-model-utils/.tox/py27-trunk/local/lib/python2.7/site-packages/django/core/management/base.py", line 337, in execute
    output = self.handle(*args, **options)
  File "/home/user/projects/django-model-utils/.tox/py27-trunk/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 138, in handle
    ProjectState.from_apps(apps),
  File "/home/user/projects/django-model-utils/.tox/py27-trunk/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 71, in from_apps
    model_state = ModelState.from_model(model)
  File "/home/user/projects/django-model-utils/.tox/py27-trunk/local/lib/python2.7/site-packages/django/db/migrations/state.py", line 136, in from_model
    e,
TypeError: Couldn't reconstruct field name_changed on tests.Monitored: MonitorField requires a "monitor" argument
2014-04-23 19:10:04 -07:00
Rodney Folz
3fe2394bfc Ignore PyCharm .idea/ folder. 2014-04-23 17:46:38 -07:00
Carl Meyer
a3c5bbf119 Fixed GH-125; add doc note about InheritanceQuerySetMixin. 2014-04-17 11:43:50 -06:00
Keryn Knight
a15e2ded1e Merge pull request #104 from kezabelle/feature/better_dir
Implemented #55 - PassThroughManagers can have tab-completion/dir() support
Thanks to erikcw for the report.
2014-04-16 08:14:00 +01:00
Keryn Knight
8a1d0662f1 Provide dir() support for PassThroughManagers.
Reported in #55 by erikcw.
2014-04-15 08:48:01 +01:00