Commit fe8c74ba authored by Valentin Samir's avatar Valentin Samir

User attribut may not exist

parent aa5bb7ef
......@@ -186,7 +186,7 @@ class ServicePattern(models.Model):
raise BadFilter('%s do not match %s %s' % (
filtre.pattern,
filtre.attribut,
user.attributs[filtre.attribut]
user.attributs.get(filtre.attribut)
))
if self.user_field and not user.attributs.get(self.user_field):
raise UserFieldNotDefined()
......
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 to comment