mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	models: Extract zerver.models.users.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							37a9c4501f
						
					
				
				
					commit
					45bb8d2580
				
			@@ -99,7 +99,8 @@ from zerver.lib.validator import (
 | 
			
		||||
    check_union,
 | 
			
		||||
    to_non_negative_int,
 | 
			
		||||
)
 | 
			
		||||
from zerver.models import Realm, Stream, UserGroup, UserMessage, UserProfile, get_system_bot
 | 
			
		||||
from zerver.models import Realm, Stream, UserGroup, UserMessage, UserProfile
 | 
			
		||||
from zerver.models.users import get_system_bot
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def principal_to_user_profile(agent: UserProfile, principal: Union[str, int]) -> UserProfile:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user