Guest User

Untitled

a guest
Jun 17th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #in view.py
  2. class by_location(request, country, state, city, big_city_nearby)
  3. location = Location.objects.filter(country=country, state=state, city=city, big_city_nearby=big_city_nearby)
  4. items = Items.objects.filter(location__in=[location.id for loc in location])
  5. 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