Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Updated views.py file for issue #889 #1087

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vms/registration/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def post(self, request):

try:
admin_city_name = request.POST.get('city')
admin_city = City.objects.get(pk=admin_city_name)
admin_city = City.objects.get(name=admin_city_name)
except ObjectDoesNotExist:
admin_city = None

Expand Down