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
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user