Skip to content
Snippets Groups Projects
Commit 6c7d47dd authored by Piotr Gawron's avatar Piotr Gawron
Browse files

name shadowing resolved

parent a6f87af6
No related branches found
No related tags found
1 merge request!336Pylint checks
......@@ -4,9 +4,8 @@ from web.models import Location
def locations(request):
locations = Location.objects.all()
data = []
for location in locations:
for location in Location.objects.all():
data.append({"id": location.id, "name": location.name})
return JsonResponse({
"locations": data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment