#NEWLINE# def get_context_data( self , **kwargs ) : #NEWLINE# #INDENT# info = ( self . model . _meta . app_label , self . model . _meta . model_name ) #NEWLINE# kwargs . update ( { #NEWLINE# #INDENT# 'bmfmodule' : { #NEWLINE# #INDENT# 'verbose_name_plural' : self . model . _meta . verbose_name_plural , #NEWLINE# 'create_views' : self . model . _bmfmeta . create_views , #NEWLINE# 'report_views' : self . model . _bmfmeta . report_views , #NEWLINE# 'model' : self . model , #NEWLINE# 'can_clone' : ( self . model . _bmfmeta . can_clone and self . request . user . has_perms ( [ ( '%s.view_%s' % info ) , ( '%s.clone_%s' % info ) ] ) ) , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# if ( self . model . _bmfmeta . has_workflow and hasattr ( self , 'object' ) and self . object ) : #NEWLINE# #INDENT# kwargs . update ( { #NEWLINE# #INDENT# 'bmfworkflow' : self . object . _bmfmeta . workflow , #NEWLINE# 'bmfworkflow_transitions' : self . object . _bmfmeta . workflow . transitions ( info . request . user ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return super ( ModuleBaseMixin , self ) . get_context_data ( ** kwargs )