Renamed url param
This commit is contained in:
@ -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})
|
||||
|
Reference in New Issue
Block a user