#NEWLINE# def __init__( self , model_or_app_label ) : #NEWLINE# #INDENT# '\n        Constructor\n\n        Parameters\n        ----------\n        model_or_app_label : django model class or string\n            A django model class or application label string.\n            Use django model class for model level permission and application\n            label for application level permission.\n        ' #NEWLINE# if isinstance ( model_or_app_label , str ) : #NEWLINE# #INDENT# self . app_label = model_or_app_label #NEWLINE# self . model = None #NEWLINE# if ( self . includes is None ) : #NEWLINE# #INDENT# self . includes = self . _get_app_perms #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . app_label = model_or_app_label . _meta . app_label #NEWLINE# self . model = model_or_app_label #NEWLINE# self . model . _permission_handler = self #NEWLINE# if ( self . includes is None ) : #NEWLINE# #INDENT# self . includes = self . _get_model_perms