Private
Public Access
1
0

planviews

This commit is contained in:
Sander Roosendaal
2019-02-25 21:19:38 +01:00
parent 617f1e5d9f
commit c3e391a4e4
3 changed files with 8 additions and 4 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -36,10 +36,13 @@ def plannedsession_comment_view(request,id=0,userid=0):
cd = form.cleaned_data
comment = cd['comment']
comment = bleach.clean(comment)
if isinstance(comment,unicode):
comment = comment.encode('utf8')
elif isinstance(comment, str):
comment = comment.decode('utf8')
try:
if isinstance(comment,unicode):
comment = comment.encode('utf8')
elif isinstance(comment, str):
comment = comment.decode('utf8')
except:
pass
notification = cd['notification']
c = PlannedSessionComment(plannedsession=ps,user=request.user,comment=comment,