#NEWLINE# def test_save_new_instance_after_add_and_remove_fields_from_class( self ) : #NEWLINE# #INDENT# 'Test if after removing moderation from model class new \n        instance of model can be created' #NEWLINE# class CustomManager ( Manager ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# moderator = GenericModerator ( UserProfile ) #NEWLINE# self . moderation . _and_fields_to_model_class ( profile ) #NEWLINE# self . moderation . _remove_fields ( moderator ) #NEWLINE# profile = UserProfile ( description = 'Profile for new user' , url = 'http://www.yahoo.com' , user = User . objects . get ( username = 'user1' ) ) #NEWLINE# profile . save ( ) #NEWLINE# up = UserProfile . _default_manager . filter ( url = 'http://www.yahoo.com' ) #NEWLINE# self . assertEqual ( up . count ( ) , 1 )