Skip to content

Instantly share code, notes, and snippets.

@kshepp
Created December 9, 2015 16:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kshepp/39f1bfae15b36b94034a to your computer and use it in GitHub Desktop.
def cafe(request, location):
city = City.objects.get(cafe__url=location)
exhibits = CafeExhibit.objects.filter(cafeName__url=location)
cafe = Cafe.objects.get(url=location)
Context = {'exhibits':exhibits,'cafe':cafe, 'city':city}
return render(request,'jewish_cafes/cafe.html', Context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment