Update views.py
This commit is contained in:
parent
6b04682782
commit
d1c228cf45
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ def bird_create(request):
|
||||||
form = BirdAddForm(initial={"bird_identifier": names.get_first_name()})
|
form = BirdAddForm(initial={"bird_identifier": names.get_first_name()})
|
||||||
# Rescuer for modal usage
|
# Rescuer for modal usage
|
||||||
rescuer_id = request.session.get("rescuer_id")
|
rescuer_id = request.session.get("rescuer_id")
|
||||||
rescuer = Rescuer.objects.get(id=rescuer_id, user=request.user)
|
rescuer = Rescuer.objects.get(id=rescuer_id)
|
||||||
|
|
||||||
# Just show only related rescuers in select field of the form.
|
# Just show only related rescuers in select field of the form.
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue