code: def contribute_to_class(self, cls, name, virtual_only=False):
          
          super(RegexField, self).contribute_to_class(cls, name, virtual_only)
          setattr(cls, name, CastOnAssignDescriptor(self))
docs: Cast to the correct value every