allow language attributes in text and annotations

This commit is contained in:
j 2013-12-26 16:41:40 +00:00
commit ad7c36881c
3 changed files with 4 additions and 4 deletions

View file

@ -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'])