weblate
weblate copied to clipboard
Roles are not saved when creating or editing a team
Describe the issue
When you try to create a project-specific team in the project user settings and select "all languages" the selected roles are not saved. The same happens when you try to change the roles of an existing team. The only way to make it work is to turn off "all languages", then save the roles and change it back to "all languages" afterward.
I already tried
- [X] I've read and searched the documentation.
- [X] I've searched for similar issues in this repository.
Steps to reproduce the behavior
- Go to a project.
- Open the project user settings.
- Switch to the "Teams" tab.
- Enter a name and select some roles for a new team.
- Leave the language selection on "All languages".
- Submit
- See that the new team has no roles assigned in the team list.
Expected behavior
The roles are saved correctly.
Screenshots
Create a new team:
New team has no roles:
Exception traceback
No response
How do you run Weblate?
Docker container
Weblate versions
- Weblate: 4.13.1
- Django: 4.0.6
- siphashc: 2.1
- translate-toolkit: 3.7.1
- lxml: 4.6.5
- Pillow: 9.2.0
- bleach: 5.0.1
- python-dateutil: 2.8.2
- social-auth-core: 4.3.0
- social-auth-app-django: 5.0.0
- django-crispy-forms: 1.14.0
- oauthlib: 3.2.0
- django-compressor: 4.0
- djangorestframework: 3.13.1
- django-filter: 22.1
- django-appconf: 1.0.5
- user-agents: 2.2.0
- filelock: 3.7.1
- jellyfish: 0.9.0
- openpyxl: 3.0.10
- celery: 5.2.7
- kombu: 5.2.4
- translation-finder: 2.13
- weblate-language-data: 2022.5
- html2text: 2020.1.16
- pycairo: 1.21.0
- pygobject: 3.42.1
- diff-match-patch: 20200713
- requests: 2.28.1
- django-redis: 5.2.0
- hiredis: 2.0.0
- sentry_sdk: 1.6.0
- Cython: 0.29.30
- misaka: 2.1.1
- GitPython: 3.1.27
- borgbackup: 1.2.1
- pyparsing: 3.0.9
- pyahocorasick: 1.4.4
- python-redis-lock: 3.7.0
- charset-normalizer: 2.1.0
- Python: 3.10.5
- Git: 2.30.2
- psycopg2: 2.9.3
- psycopg2-binary: 2.9.3
- phply: 1.2.5
- ruamel.yaml: 0.17.21
- tesserocr: 2.5.2
- boto3: 1.24.23
- zeep: 4.1.0
- aeidon: 1.11
- iniparse: 0.5
- mysqlclient: 2.1.1
- Mercurial: 6.1.4
- git-svn: 2.30.2
- git-review: 2.3.1
- Redis server: 6.2.7
- PostgreSQL server: 14.4
- Database backends: django.db.backends.postgresql
- Cache backends: default:RedisCache, avatar:FileBasedCache
- Email setup: django.core.mail.backends.smtp.EmailBackend: smtp.office365.com
- OS encoding: filesystem=utf-8, default=utf-8
- Celery: redis://weblate-redis:6379/1, redis://weblate-redis:6379/1, regular
- Platform: Linux 4.19.0-17-amd64 (x86_64)
Weblate deploy checks
System check identified some issues:
INFOS:
?: (weblate.I021) Error collection is not set up, it is highly recommended for production use
HINT: https://docs.weblate.org/en/weblate-4.13.1/admin/install.html#collecting-errors
?: (weblate.I028) Backups are not configured, it is highly recommended for production use
HINT: https://docs.weblate.org/en/weblate-4.13.1/admin/backup.html
System check identified 2 issues (1 silenced).
Additional context
No response