#NEWLINE# def test_empty_fields_on_modelformset( self ) : #NEWLINE# #INDENT# 'No fields passed to modelformset_factory should result in no fields on returned forms except for the id. See #14119.' #NEWLINE# UserFormSet = modelformset_factory ( User , fields = ( ) ) #NEWLINE# formset = UserFormSet ( ) #NEWLINE# for form in formset . forms : #NEWLINE# #INDENT# self . assertTrue ( ( 'id' in form . fields ) ) #NEWLINE# self . assertEqual ( len ( UserFormSet . fields ) , 1 )