summaryrefslogtreecommitdiff
path: root/gstudio/views/topicadd.py
diff options
context:
space:
mode:
authorgnowgi <nagarjun@gnowledge.org>2012-09-04 19:18:43 -0700
committergnowgi <nagarjun@gnowledge.org>2012-09-04 19:18:43 -0700
commitcad11e2f7ed848cdfd7779451bb0f4f931e062c3 (patch)
tree49c85045d5bbf5489ffed493d75f060c31de7f5a /gstudio/views/topicadd.py
parent85f7d716309b79fb1f46dc887897a127017841cb (diff)
parent975e4380ea41eb151f5488da436e28c7b1d1082a (diff)
downloadgnowsys-cad11e2f7ed848cdfd7779451bb0f4f931e062c3.tar.gz
Merge pull request #84 from kabirkukreti/master
Unicode error solved and unicode support added
Diffstat (limited to 'gstudio/views/topicadd.py')
-rw-r--r--gstudio/views/topicadd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gstudio/views/topicadd.py b/gstudio/views/topicadd.py
index ba094c5..31e780e 100644
--- a/gstudio/views/topicadd.py
+++ b/gstudio/views/topicadd.py
@@ -32,8 +32,8 @@ def topicadd(request):
if not request.POST.get('message', ''):
errors.append('Enter a message.')
if not errors:
- title=request.POST['subject']
- content=request.POST['message']
+ title=unicode(request.POST['subject'])
+ content=unicode(request.POST['message'])
idusr=request.POST['idusr']
boolean = make_topic_object(title,int(idusr),content)
if boolean :