Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #in view.py
- class by_location(request, country, state, city, big_city_nearby)
- location = Location.objects.filter(country=country, state=state, city=city, big_city_nearby=big_city_nearby)
- items = Items.objects.filter(location__in=[location.id for loc in location])
- return render_to_response('item/by_location.html', {"items":itmes, "country":countyr, "cit":city, "nearby":big_city_nearby})
Add Comment
Please, Sign In to add comment