if 'widget' key of the kwargs dictionary doesnt exists assign it widget field of the base class of the IntegerField class value.
kwargs . setdefault ( 'widget' , super ( IntegerField , self ) . widget )