#NEWLINE# def get_context_data( self , **kwargs ) : #NEWLINE# #INDENT# context = super ( ImageObjectPermissionsView , self ) . get_context_data ( ** kwargs ) #NEWLINE# pk = kwargs [ 'pk' ] #NEWLINE# image = get_object_or_404 ( CloudImage . objects . all ( ) , pk = pk ) #NEWLINE# if ( not self . request . user . has_perm ( 'cloud.admin_cloudimage' , image ) ) : #NEWLINE# #INDENT# raise Http404 ( ) #NEWLINE# #UNINDENT# context [ 'image' ] = image #NEWLINE# context [ 'has_admin' ] = self . request . user . has_perm ( 'cloud.admin_cloudimage' , image ) #NEWLINE# context [ 'page_id' ] = self . page_id #NEWLINE# return image