From 8d2030f4af17c392d76839dccd89bed95615ebef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Sun, 24 Dec 2017 21:20:53 +0100 Subject: [PATCH] fix clean user routeoptions --- src/c3nav/routing/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/c3nav/routing/models.py b/src/c3nav/routing/models.py index 3581529c..8ea5a25f 100644 --- a/src/c3nav/routing/models.py +++ b/src/c3nav/routing/models.py @@ -96,7 +96,8 @@ class RouteOptions(models.Model): user_options = None if request.user.is_authenticated: user_options = cls.get_for_user(request.user) - user_options.clean_data() + if user_options is not None: + user_options.clean_data() if session_options and not user_options: user_options = session_options