#NEWLINE# def get( self , request , * args , **kwargs ) : #NEWLINE# #INDENT# self . object = self . get_bmfobject ( self . kwargs . get ( 'pk' , None ) ) #NEWLINE# serialized = self . get_serializer_class ( ) ( self . object ) #NEWLINE# meta = self . object . _bmfmeta #NEWLINE# module = self . bmfconfig . bmf_modules [ self . object . __class__ ] #NEWLINE# related_response = module . detail_view ( request , object = self . object ) #NEWLINE# try : #NEWLINE# #INDENT# notification = Notification . objects . get ( user = self . request . user , watch_ct = self . get_bmfcontenttype ( ) , watch_id = self . object . pk ) #NEWLINE# if notification . unread : #NEWLINE# #INDENT# notification . unread = False #NEWLINE# notification . save ( ) #NEWLINE# #UNINDENT# #UNINDENT# except Notification . DoesNotExist : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# return Response ( OrderedDict ( [ ( 'object' , serialized . data ) , ( 'html' , related_response . rendered_content . strip ( ) ) , ( 'views' , { #NEWLINE# #INDENT# 'update' : reverse ( ( 'djangobmf:moduleapi_%s_%s:update' % ( self . object . _meta . app_label , self . object . _meta . model_name ) ) , format = None , request = self . request , kwargs = { #NEWLINE# #INDENT# 'pk' : self . object . pk , #NEWLINE# #UNINDENT# } ) , #NEWLINE# 'delete' : reverse ( ( 'djangobmf:moduleapi_%s_%s:delete' % ( self . object . _meta . app_label , self . object . _meta . model_name ) ) , format = None , request = self . request , kwargs = { #NEWLINE# #INDENT# 'pk' : self . object . pk , #NEWLINE# #UNINDENT# } ) , #NEWLINE# #UNINDENT# } ) , ( 'workflow' , ( meta . workflow . serialize ( self . request ) if self . workflow else None ) ) ] ) )