diff options
author | supriya <supriya@dragbox.(none)> | 2012-09-26 15:49:52 +0530 |
---|---|---|
committer | supriya <supriya@dragbox.(none)> | 2012-09-26 15:49:52 +0530 |
commit | 94535d4adc3a4960795d22e3b229a8375de10b74 (patch) | |
tree | 8d77de86b443495d67360dcd40786f2b8208d334 /gstudio/views/topicadd1.py | |
parent | cad11e2f7ed848cdfd7779451bb0f4f931e062c3 (diff) | |
download | gnowsys-94535d4adc3a4960795d22e3b229a8375de10b74.tar.gz |
all modules integrated
Diffstat (limited to 'gstudio/views/topicadd1.py')
-rw-r--r-- | gstudio/views/topicadd1.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gstudio/views/topicadd1.py b/gstudio/views/topicadd1.py index dc1865fb..bb866d84 100644 --- a/gstudio/views/topicadd1.py +++ b/gstudio/views/topicadd1.py @@ -33,9 +33,10 @@ def topicadd1(request,grpid): errors.append('Enter a message.') if not errors: title=request.POST['subject'] - content=request.POST['message'] + content=unicode(request.POST['message']) idusr=request.POST['idusr'] - tp = make_topic_object(title,int(idusr),content) + usr=request.POST['usr'] + tp = make_topic_object(title,int(idusr),content,usr) System.objects.get(id=int(grpid)).system_set.all()[0].gbobject_set.add(tp) if tp: return HttpResponseRedirect('/gstudio/group/gnowsys-grp/'+grpid) |