mirror of https://github.com/jumpserver/jumpserver
				
				
				
			
		
			
				
	
	
		
			12 lines
		
	
	
		
			340 B
		
	
	
	
		
			Python
		
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			340 B
		
	
	
	
		
			Python
		
	
	
from django.utils.translation import gettext_lazy as _
 | 
						|
from rest_framework import serializers
 | 
						|
 | 
						|
from common.serializers.fields import LabeledChoiceField
 | 
						|
from ..const import Scope
 | 
						|
 | 
						|
 | 
						|
class ScopeSerializerMixin(serializers.Serializer):
 | 
						|
    scope = LabeledChoiceField(
 | 
						|
        choices=Scope.choices, default=Scope.public, label=_("Scope")
 | 
						|
    )
 |