forked from 0x2620/pandora
allow language attributes in text and annotations
This commit is contained in:
parent
6e49032602
commit
ad7c36881c
3 changed files with 4 additions and 4 deletions
|
|
@ -128,9 +128,9 @@ class Text(models.Model):
|
|||
name = data['name'] + ' [%d]' % num
|
||||
self.name = name
|
||||
elif key == 'description':
|
||||
self.description = ox.sanitize_html(data['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'])
|
||||
self.text = ox.sanitize_html(data['text'], global_attributes=['data-name', 'lang'])
|
||||
elif key == 'rightslevel':
|
||||
self.rightslevel = int(data['rightslevel'])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue