[Python-modules-commits] [django-celery] 01/04: django 1.10: fix access to _default_manager
Thomas Goirand
zigo at moszumanska.debian.org
Mon Aug 8 09:01:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
zigo pushed a commit to branch master
in repository django-celery.
commit 39098cc288ef5f15f9f52a83339a5d3bc59ba6cd
Author: Thomas Goirand <zigo at debian.org>
Date: Mon Aug 8 08:52:08 2016 +0000
django 1.10: fix access to _default_manager
---
djcelery/schedulers.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/djcelery/schedulers.py b/djcelery/schedulers.py
index c937743..acbc0dd 100644
--- a/djcelery/schedulers.py
+++ b/djcelery/schedulers.py
@@ -95,7 +95,7 @@ class ModelEntry(ScheduleEntry):
def save(self):
# Object may not be synchronized, so only
# change the fields we care about.
- obj = self.model._default_manager.get(pk=self.model.pk)
+ obj = self.model._meta.default_manager.get(pk=self.model.pk)
for field in self.save_fields:
setattr(obj, field, getattr(self.model, field))
obj.last_run_at = make_aware(obj.last_run_at)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-celery.git
More information about the Python-modules-commits
mailing list