def METHOD_NAME(self, attrs: dict) -> dict:
    if attrs.get("path", "") == "" and attrs.get("content", "") == "":
        raise ValidationError(_("Either path or content must be set."))
    return super().METHOD_NAME(attrs)