#NEWLINE# def _get_model_perms( self , * args ) : #NEWLINE# #INDENT# '\n        Get permissions related to the model specified in constructor\n\n        Returns\n        -------\n        set\n            A set instance of `app_label.codename` formatted permission strings\n        ' #NEWLINE# if ( not hasattr ( self , '_model_perms_cache' ) ) : #NEWLINE# #INDENT# if ( self . model is None ) : #NEWLINE# #INDENT# self . _model_perms_cache = set ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _model_perms_cache = get_model_perms ( self . model ) #NEWLINE# #UNINDENT# #UNINDENT# return self . _model_perms_cache