planviews
This commit is contained in:
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
Binary file not shown.
@@ -36,10 +36,13 @@ def plannedsession_comment_view(request,id=0,userid=0):
|
|||||||
cd = form.cleaned_data
|
cd = form.cleaned_data
|
||||||
comment = cd['comment']
|
comment = cd['comment']
|
||||||
comment = bleach.clean(comment)
|
comment = bleach.clean(comment)
|
||||||
if isinstance(comment,unicode):
|
try:
|
||||||
comment = comment.encode('utf8')
|
if isinstance(comment,unicode):
|
||||||
elif isinstance(comment, str):
|
comment = comment.encode('utf8')
|
||||||
comment = comment.decode('utf8')
|
elif isinstance(comment, str):
|
||||||
|
comment = comment.decode('utf8')
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
notification = cd['notification']
|
notification = cd['notification']
|
||||||
c = PlannedSessionComment(plannedsession=ps,user=request.user,comment=comment,
|
c = PlannedSessionComment(plannedsession=ps,user=request.user,comment=comment,
|
||||||
|
|||||||
Reference in New Issue
Block a user