Skip to content

Commit

Permalink
Merge pull request #50 from AlexeyUzhva/master
Browse files Browse the repository at this point in the history
Fix for Django 1.10
  • Loading branch information
Forrest Pieper authored Nov 10, 2016
2 parents 321bb29 + 479566a commit 1d437b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions positions/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def __set__(self, instance, value):
current, updated = value, None
else:
updated = value

instance.__dict__[self.name] = value # Django 1.10 fix for deferred fields
setattr(instance, cache_name, (current, updated))

def get_collection(self, instance):
Expand Down

0 comments on commit 1d437b9

Please sign in to comment.