summaryrefslogtreecommitdiff
path: root/gstudio/views/sectionadd1.py
diff options
context:
space:
mode:
authorsupriya <supriya@dragbox.(none)>2012-09-26 15:49:52 +0530
committersupriya <supriya@dragbox.(none)>2012-09-26 15:49:52 +0530
commit94535d4adc3a4960795d22e3b229a8375de10b74 (patch)
tree8d77de86b443495d67360dcd40786f2b8208d334 /gstudio/views/sectionadd1.py
parentcad11e2f7ed848cdfd7779451bb0f4f931e062c3 (diff)
downloadgnowsys-94535d4adc3a4960795d22e3b229a8375de10b74.tar.gz
all modules integrated
Diffstat (limited to 'gstudio/views/sectionadd1.py')
-rw-r--r--gstudio/views/sectionadd1.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/gstudio/views/sectionadd1.py b/gstudio/views/sectionadd1.py
index 8bc3dd1c..55ba6ff6 100644
--- a/gstudio/views/sectionadd1.py
+++ b/gstudio/views/sectionadd1.py
@@ -19,11 +19,12 @@ def sectionadd1(request,pageid):
if not request.POST.get('org', ''):
errors.append('Enter a page.')
if not errors:
- title=unicode(request.POST['subject'])
+ title=request.POST['subject']
# content=request.POST['page']
content_org=unicode(request.POST['org'])
idusr=request.POST['idusr']
- tp = make_section_object(title,int(idusr),content_org)
+ usr=request.POST['usr']
+ tp = make_section_object(title,int(idusr),content_org,usr)
System.objects.get(id=int(pageid)).system_set.all()[0].gbobject_set.add(tp)
if tp:
return HttpResponseRedirect('/gstudio/page/gnowsys-page/'+pageid)