This commit is contained in:
boyska 2020-03-07 23:57:57 +01:00
parent 96261bfa95
commit 9d07653817

View file

@ -29,7 +29,7 @@ def rapporto_edit_redirect(request, pk):
def rapporto_add(request):
user = User.objects.filter(is_superuser=True).first()
r = RapportoRicezione(
author=user,
author=request.user,
lat=float(request.POST["lat"]),
lng=float(request.POST["lng"]),
comprensibile=int(request.POST["comprensibile"]),