You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py", line 34, in inner
response = get_response(request)
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py", line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py", line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.7/dist-packages/django/views/decorators/http.py", line 40, in inner
return func(request, *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/weblate/trans/views/files.py", line 146, in upload_translation
author_name = form.cleaned_data["author_name"]
Exception Type: KeyError at /upload/bilingual-vs-monolingual/monolingual/aa/
Exception Value: 'author_name'
Screen Shot
As can be seen in the above screen shot, no author name or author email fields are present as one would expect.
Additional context
This works fine when you add the <component-name>@Administration group to the users chosen groups via the admin interface. The difference being the Author name and email fields are available in the upload translation form.
The text was updated successfully, but these errors were encountered:
Yeah there is. Once I deselect all components from the permissions group I can see the author name and author email fields available in the upload translation form.
Describe the bug
When trying to upload a PO file to overwrite existing translations I am met with an KeyError referring to
author_name
.I suspect this is because the upload file form should have an author name and author email field but does not.
To Reproduce
Steps to reproduce the behavior:
Via the admin interface:
Via the Weblate instance:
Replace exisintg translation file
andImport as translated
Upload
buttonExpected behavior
A message telling me the outcome of uploading the translation file.
Server configuration and status
Exception traceback
Screen Shot
As can be seen in the above screen shot, no author name or author email fields are present as one would expect.
Additional context
This works fine when you add the
<component-name>@Administration
group to the users chosen groups via the admin interface. The difference being the Author name and email fields are available in the upload translation form.The text was updated successfully, but these errors were encountered: