User attribut may not exist
This commit is contained in:
parent
aa5bb7ef72
commit
fe8c74ba08
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ class ServicePattern(models.Model):
|
||||||
raise BadFilter('%s do not match %s %s' % (
|
raise BadFilter('%s do not match %s %s' % (
|
||||||
filtre.pattern,
|
filtre.pattern,
|
||||||
filtre.attribut,
|
filtre.attribut,
|
||||||
user.attributs[filtre.attribut]
|
user.attributs.get(filtre.attribut)
|
||||||
))
|
))
|
||||||
if self.user_field and not user.attributs.get(self.user_field):
|
if self.user_field and not user.attributs.get(self.user_field):
|
||||||
raise UserFieldNotDefined()
|
raise UserFieldNotDefined()
|
||||||
|
|
Loading…
Reference in a new issue