#NEWLINE# @ receiver ( post_save , sender = Post , dispatch_uid = 'djangobb_post_save' ) #NEWLINE# def post_saved( instance , **kwargs ) : #NEWLINE# #INDENT# created = kwargs . get ( 'created' ) #NEWLINE# post = instance #NEWLINE# topic = post . topic #NEWLINE# if created : #NEWLINE# #INDENT# topic . last_post = instance #NEWLINE# topic . post_count = topic . posts . count ( ) #NEWLINE# topic . updated = timezone . now ( ) #NEWLINE# profile = post . user . forum_profile #NEWLINE# profile . post_count = post . user . posts . count ( ) #NEWLINE# profile . save ( force_update = True ) #NEWLINE# notify_topic_subscribers ( post ) #NEWLINE# #UNINDENT# topic . save ( force_update = True )