Setup data
* removes auto-translating of setup data for database (keep english values in db and translate for templates)
This commit is contained in:
parent
f58650effa
commit
715cf65538
@ -27,13 +27,13 @@ TEST_ORGANISATION_DATA = [
|
|||||||
|
|
||||||
GROUPS_DATA = [
|
GROUPS_DATA = [
|
||||||
{
|
{
|
||||||
"name": _(DEFAULT_GROUP),
|
"name": DEFAULT_GROUP,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": _(ZB_GROUP),
|
"name": ZB_GROUP,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": _(ETS_GROUP),
|
"name": ETS_GROUP,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ Contact: michel.peltriaux@sgdnord.rlp.de
|
|||||||
Created on: 02.07.21
|
Created on: 02.07.21
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from django.utils.translation import gettext_lazy as _
|
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
|
|
||||||
|
|
||||||
@ -20,5 +19,5 @@ def in_group(user: User, group: str) -> bool:
|
|||||||
bool
|
bool
|
||||||
"""
|
"""
|
||||||
return user.groups.filter(
|
return user.groups.filter(
|
||||||
name=_(group)
|
name=group
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user