fix clean user routeoptions

This commit is contained in:
Laura Klünder 2017-12-24 21:20:53 +01:00
parent e58e26ba76
commit 8d2030f4af

View file

@ -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