#NEWLINE# def get_object( self , queryset = None ) : #NEWLINE# #INDENT# post = super ( EditPostView , self ) . get_object ( queryset ) #NEWLINE# if ( not perms . may_edit_post ( self . request . user , post ) ) : #NEWLINE# #INDENT# raise PermissionDenied #NEWLINE# #UNINDENT# return queryset