Setup data

* removes auto-translating of setup data for database (keep english values in db and translate for templates)
This commit is contained in:
mipel 2021-08-03 09:11:33 +02:00
parent f58650effa
commit 715cf65538
2 changed files with 4 additions and 5 deletions

View File

@ -27,13 +27,13 @@ TEST_ORGANISATION_DATA = [
GROUPS_DATA = [
{
"name": _(DEFAULT_GROUP),
"name": DEFAULT_GROUP,
},
{
"name": _(ZB_GROUP),
"name": ZB_GROUP,
},
{
"name": _(ETS_GROUP),
"name": ETS_GROUP,
},
]

View File

@ -5,7 +5,6 @@ Contact: michel.peltriaux@sgdnord.rlp.de
Created on: 02.07.21
"""
from django.utils.translation import gettext_lazy as _
from django.contrib.auth.models import User
@ -20,5 +19,5 @@ def in_group(user: User, group: str) -> bool:
bool
"""
return user.groups.filter(
name=_(group)
name=group
)