add data-type/value as valid global attributes to text (followup to r3900)
This commit is contained in:
parent
a7e87647e0
commit
32ec8c3f2b
1 changed files with 6 additions and 1 deletions
|
@ -140,7 +140,12 @@ class Text(models.Model):
|
|||
elif key == 'description':
|
||||
self.description = ox.sanitize_html(data['description'], global_attributes=['lang'])
|
||||
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':
|
||||
self.rightslevel = int(data['rightslevel'])
|
||||
|
||||
|
|
Loading…
Reference in a new issue