From dcd0c1fe75381d63fd75de0485f191c017691e62 Mon Sep 17 00:00:00 2001 From: Skia Date: Wed, 4 Jan 2017 16:14:17 +0100 Subject: [PATCH] Allow more than one bar if someone can connect to the counter --- counter/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/counter/views.py b/counter/views.py index 43b35a74..d834c480 100644 --- a/counter/views.py +++ b/counter/views.py @@ -412,7 +412,7 @@ class CounterLogin(RedirectView): if user in self.counter.sellers.all() and not user in self.counter.get_barmen_list(): if len(self.counter.get_barmen_list()) <= 0: self.counter.gen_token() - request.session['counter_token'] = self.counter.token + request.session['counter_token'] = self.counter.token self.counter.add_barman(user) else: self.errors += ["sellers"]