Commit 240e00f7 by Őry Máté

dashboard: use x not in instead not x in

parent a931fe31
......@@ -1629,7 +1629,7 @@ class GroupProfileUpdate(GroupCodeMixin, LoginRequiredMixin, UpdateView):
def get_available_group_codes(cls, request, extra=None):
result = super(GroupProfileUpdate, cls).get_available_group_codes(
if extra and not extra in result:
if extra and extra not in result:
result += [extra]
return result
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment