Commits

Javed Khan committed d934633

autosubscribe poster to topic

  • Participants
  • Parent commits b56af39

Comments (0)

Files changed (1)

         ftopic.filename = request.FILES['file'].name
         
     ftopic.posted_by = request.user
+    #autosubsribe
+    ftopic.subscribers.add(request.user)
     mlogger.debug("categoryid= %s" %request.POST['categoryid'])
     ftopic.category  = Category.objects.get(pk = request.POST['categoryid'])
     #Assigning user rank