Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError at /admin/weblate_auth/group/73/change/ #5324

Closed
tgriepentrogPATH opened this issue Feb 2, 2021 · 4 comments
Closed

AttributeError at /admin/weblate_auth/group/73/change/ #5324

tgriepentrogPATH opened this issue Feb 2, 2021 · 4 comments
Assignees
Labels
bug Something is broken.
Milestone

Comments

@tgriepentrogPATH
Copy link

I want to create a authentication group for external translators (e.g. hungarian translation).

The settings are the following:
Roles: Translate
Project Selection: "From component list"
Projects: none selected
Components: none selected
Component lists: My specified component list
Language selection: As defined
Languages: Hungarian

When I hit the "SAVE" Button, the following error appears:
AttributeError at /admin/weblate_auth/group/73/change/
'Group' object has no attribute 'componentlist'
Request Method: POST
Request URL: http://OUR_SERVER/admin/weblate_auth/group/73/change/
Django Version: 3.0.6
Exception Type: AttributeError
Exception Value:
'Group' object has no attribute 'componentlist'
Exception Location: /INSTALL_PATH/python3.7/site-packages/weblate/auth/models.py in save, line 177
Python Executable: /usr/bin/python3
Python Version: 3.7.3
Python Path:
['/INSTALL_PATH/python3.7/site-packages/git/ext/gitdb',
'/',
'/INSTALL_PATH/python37.zip',
'/INSTALL_PATH/python3.7',
'/INSTALL_PATH/python3.7/lib-dynload',
'/usr/lib/python3.7',
'/INSTALL_PATH/python3.7/site-packages',
'/INSTALL_PATH/python3.7/site-packages/gitdb/ext/smmap']

Any suggestions how to solve the issue?

@nijel nijel added the bug Something is broken. label Feb 2, 2021
@nijel nijel self-assigned this Feb 2, 2021
@nijel nijel added this to the 4.5 milestone Feb 2, 2021
@nijel nijel closed this as completed in 8d11d08 Feb 2, 2021
@github-actions
Copy link

github-actions bot commented Feb 2, 2021

Thank you for your report, the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

@tgriepentrogPATH
Copy link
Author

Thank you for fixing it.

I updated my local file to your change and now I run into another error. :(

'ManyRelatedManager' object is not iterable
Request Method: POST
Request URL: http://OUR_SERVER/admin/weblate_auth/group/73/change/
Django Version: 3.0.6
Exception Type: TypeError
Exception Value: 'ManyRelatedManager' object is not iterable
Exception Location: /INSTALL_PATH/python3.7/site-packages/django/db/models/fields/related_lookups.py in get_prep_lookup, line 50

Is this the correct place to post it?

nijel added a commit that referenced this issue Feb 2, 2021
@nijel
Copy link
Member

nijel commented Feb 2, 2021

Sorry, there is another bug in that, should be fixed in 6385ba6

@tgriepentrogPATH
Copy link
Author

Thank you.
It's working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken.
Projects
None yet
Development

No branches or pull requests

2 participants