def enforce_required_fields(self, attrs):
        """
        The `UniqueTogetherValidator` always forces an implied 'required'
        state on the fields it applies to.
        """
        if self.instance is not None:
            return

        missing = {
            field_name: self.missing_message
            for field_name in self.fields
            if field_name not in attrs
        }
        if missing:
            raise ValidationError(missing)
def enforce_required_fields ( self , attrs ) : if self . instance is not None : return missing = { field_name : self . missing_message for field_name in self . fields if field_name not in attrs } if missing : raise ValidationError ( missing )
The `UniqueTogetherValidator` always forces an implied 'required'
        state on the fields it applies to.