Used the same test and fix as in #25867. This required initializing base_field in RangeField.__init__, not when setting the attribute.
Used the same test and fix as in #25867. This required initializing base_field in RangeField.__init__, not when setting the attribute.