fix food check

This commit is contained in:
Jan Grewe 2019-08-21 23:53:11 +02:00
parent 6bdb802af8
commit 5c8a483a96

View File

@ -84,7 +84,7 @@ class Participation(object):
def __check(self):
if "student" not in self._role and self.gwinner_award:
self._conflicts.append("Gwinner award selected but not student!")
if (self._food_vegan or self._food_gluten or self.vegetarian) and self._food_normal:
if (self._food_vegan or self._food_gluten or self._food_vegi) and self._food_normal:
self._conflicts.append("Conflict in food preferences!")
def __calc_fee(self):