Last active
October 27, 2015 19:59
-
-
Save kkellydesign/b796cde8edacd43aa416 to your computer and use it in GitHub Desktop.
views.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def by_location(request, location_slug): | |
doctors_list = Doctor.objects.filter(location__slug=location_slug) | |
location = Location.objects.get(slug=location_slug) | |
return render_to_response("doctors/location.html", | |
{"doctors_list": doctors_list}, | |
{"location": location}, | |
context_instance=RequestContext(request) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment