i want to filter roll no from database,but when i enter the number ,browser 
gives *view didn't return an HttpResponse object* ....this is my view..

def studentid(request):
    if request.method == 'POST':
        form = Student_loginForm(request.POST)
        if form.is_valid():
            cd = form.cleaned_data
            rollno = cd[rollno]
            rollno = request.POST.get(rollno)
            results = Add_record.objects.filter(Student_ID=rollno)
            return 
HttpResponseRedirect(reverse('record_system.views.search' ,args=(results,)))
    else:
        form = Student_loginForm
        return render_to_response('add_record/studentid.html', 
context_instance=RequestContext(request))


please help...
thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/8mDDh3cBWFkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to