Thank you very much, it worked. Here's the code...:
def businessnamesearch_view(request):
search = request.GET.get('business')
business = Business.objects.filter(business__icontains=search)
return render_to_response('portal/business_list.html',
{'object_list
On Jan 5, 5:24 am, Delacroy Systems wrote:
> I want to allow a user to search for a value and return the results
> using the object_list generic view. How can I get this working?
>
> business_search.html:
> {% block content %}
>
> Business name:
>
> {% end
I want to allow a user to search for a value and return the results
using the object_list generic view. How can I get this working?
business_search.html:
{% block content %}
Business name:
{% endblock content %}
urls.py:
(r'^?business=(?P\w+)/','businessn
3 matches
Mail list logo