#NEWLINE# def save_model( self , request , obj , form , change ) : #NEWLINE# #INDENT# if ( getattr ( obj , 'pk' , None ) is None ) : #NEWLINE# #INDENT# obj . user = get_user_model ( ) . objects . get ( pk = self . user . pk ) #NEWLINE# obj . site = Site . objects . get ( pk = settings . SITE_ID ) #NEWLINE# if ( not obj . channel ) : #NEWLINE# #INDENT# obj . channel = Channel . objects . get_homepage ( site = obj . site ) #NEWLINE# #UNINDENT# #UNINDENT# obj . save ( )