Skip to content

Commit

Permalink
Hosting: Fix trial extension for non libre
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Sep 21, 2020
1 parent bce35ca commit 8dd73a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions weblate/accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,10 @@ def hosting(request):
)
return redirect("hosting")

if "extend" in request.POST and request.user.is_superuser:
billing.expiry = timezone.now() + timedelta(days=14)
billing.save(update_fields=["expiry"])
return redirect("hosting")
if "extend" in request.POST and request.user.is_superuser:
billing.expiry = timezone.now() + timedelta(days=14)
billing.save(update_fields=["expiry"])
return redirect("hosting")

return render(
request,
Expand Down

0 comments on commit 8dd73a8

Please sign in to comment.