Skip to content
Browse files

fix django 1.10 issue: Access _default_manager on the model instance'…

…s type, not the instance (#432)
  • Loading branch information...
mfenniak authored and auvipy committed Jun 29, 2016
1 parent ec52037 commit 803234d03c8f03a149476365496263a921714bba
Showing with 1 addition and 1 deletion.
  1. +1 −1 djcelery/
@@ -95,7 +95,7 @@ def __next__(self):
def save(self):
# Object may not be synchronized, so only
# change the fields we care about.
obj = self.model._default_manager.get(
obj = type(self.model)._default_manager.get(
for field in self.save_fields:
setattr(obj, field, getattr(self.model, field))
obj.last_run_at = make_aware(obj.last_run_at)

1 comment on commit 803234d


This comment has been minimized.

Copy link

commented on 803234d Oct 13, 2016

how do I add this to my heroku app?

Please sign in to comment.
You can’t perform that action at this time.