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
							
								
									0a523d0a1a
								
							
						
					
					
						commit
						d4b3b97f84
					
				@ -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,
 | 
			
		||||
        },
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user