boyska 4 years ago
parent
commit
9d07653817
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rxmap/rxmapp/views.py

+ 1 - 1
rxmap/rxmapp/views.py

@@ -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"]),