nl: if data is an instance of datetime.datetime or datetime.time classes, and supports_microseconds field of self.field.widget is false,
code: if ( isinstance ( data , ( datetime . datetime , datetime . time ) ) and not getattr ( self . field . widget , 'supports_microseconds' , True ) ) :