add data-type/value as valid global attributes to text (followup to r3900)

This commit is contained in:
j 2014-01-22 12:30:51 +00:00
parent a7e87647e0
commit 32ec8c3f2b

View file

@ -140,7 +140,12 @@ class Text(models.Model):
elif key == 'description': elif key == 'description':
self.description = ox.sanitize_html(data['description'], global_attributes=['lang']) self.description = ox.sanitize_html(data['description'], global_attributes=['lang'])
elif key == 'text': elif key == 'text':
self.text = ox.sanitize_html(data['text'], global_attributes=['data-name', 'lang']) self.text = ox.sanitize_html(data['text'], global_attributes=[
'data-name',
'data-type',
'data-value',
'lang'
])
elif key == 'rightslevel': elif key == 'rightslevel':
self.rightslevel = int(data['rightslevel']) self.rightslevel = int(data['rightslevel'])