Renamed url param

This commit is contained in:
Zak Timson
2017-09-03 15:59:37 -04:00
parent 583dac0f3a
commit 18498b10bf
2 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@ from django.shortcuts import render
from .models import Attorney
def index(request, userId):
attorney = Attorney.objects.get(id=userId)
def index(request, id):
attorney = Attorney.objects.get(id=id)
return render(request, 'attorney.html', {'attorney': attorney})