From 479566aa42c4a32a4179b64b92d75d9094e53e37 Mon Sep 17 00:00:00 2001 From: Alexey Date: Sun, 23 Oct 2016 21:40:13 +0300 Subject: [PATCH] Fix for Django 1.10 --- positions/fields.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/positions/fields.py b/positions/fields.py index 19bf662..f8342b0 100644 --- a/positions/fields.py +++ b/positions/fields.py @@ -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):