cleanup use of python-ox api

This commit is contained in:
j 2012-05-27 13:52:12 +02:00
commit 69b1e6c7b2
10 changed files with 25 additions and 25 deletions

View file

@ -243,7 +243,7 @@ def addList(request):
value = list.status
list.status = value
if 'description' in data:
list.description = ox.parse_html(data['description'])
list.description = ox.sanitize_html(data['description'])
if 'view' in data:
list.view = data['view']
if 'sort' in data:
@ -363,7 +363,7 @@ def editList(request):
name = data['name'] + ' [%d]' % num
list.name = name
elif key == 'description':
list.description = ox.parse_html(data['description'])
list.description = ox.sanitize_html(data['description'])
if 'position' in data:
pos, created = models.Position.objects.get_or_create(list=list, user=request.user)