Commit 5e54ffcc authored by Valentin Samir's avatar Valentin Samir
Browse files

attributes joker

parent 6185ec52
......@@ -80,10 +80,10 @@ class User(models.Model):
service_attributs = {}
for (key, value) in self.attributs.items():
if key in attributs:
if key in attributs or '*' in attributs:
if key in replacements:
value = re.sub(replacements[key][0], replacements[key][1], value)
service_attributs[attributs[key]] = value
service_attributs[attributs.get(key, key)] = value
ticket = ticket_class.objects.create(
......@@ -221,7 +221,7 @@ class ReplaceAttributName(models.Model):
name = models.CharField(
help_text=_(u"name of an attribut to send to the service")
help_text=_(u"name of an attribut to send to the service, use * for all attributes")
replace = models.CharField(
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