Pass user to form
@@ -575,7 +575,11 @@ def project_translations(request, project_slug):
"""Project translations view and form view."""
project = get_object_or_404(
Project.objects.for_admin_user(request.user), slug=project_slug)
- form = TranslationForm(data=request.POST or None, parent=project)
+ form = TranslationForm(
+ data=request.POST or None,
+ parent=project,
+ user=request.user,
+ )
if request.method == 'POST' and form.is_valid():
form.save()
