2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-17 07:47:20 +00:00

All working except floklist script

This commit is contained in:
2023-10-01 16:10:17 +03:00
parent 7b8703dadc
commit d8aad0ba2b
4 changed files with 10 additions and 5 deletions

View File

@@ -184,11 +184,14 @@ def better_person(request, name=""):
def person(
request,
first_name="",
last_name="",
slug=""
):
"""Original code as it has been for years. Trying to replace with better_person()
"""Original code as it has been for years. Trying to replace with better_person
"""
this_person = Person.objects.get(slug=slug)
return render(request, "person.html", {"person": this_person})
try:
this_person = Person.objects.get(first_name=first_name, last_name=last_name)
except: