#NEWLINE# def can_update_deployment( self , deployment ) : #NEWLINE# #INDENT# from core.models.site import DeploymentPrivilege #NEWLINE# if self . can_update_root ( ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if DeploymentPrivilege . objects . filter ( deployment = self , user = self , role__role__in = [ 'admin' , 'Admin' ] ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# return False