Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
295 B
1
Indexable
Never
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()