Untitled
def comp_post(request): complaint = request.POST['text'] cobj=complaint() cobj.complaint=complaint cobj.date=datetime.now() result=login.objects.get(id=request.session['lid']) res=registration.objects.filter(LOGIN=result) cobj.registration=res cobj.save()