style: apply ruff

This commit is contained in:
Víctor Fernández Poyatos committed 2025-06-17 14:59:50 +02:00
1 parent 7439ddd991
commit 746c4c7462
1 file changed
+1 -3
+1 -3
View File
@@ -132,9 +132,7 @@ class RowLevelSecurityConstraint(models.BaseConstraint):
path, _, kwargs = super().deconstruct()
return (path, (self.target_field,), kwargs)
def validate(
self, model, instance, exclude=None, using=DEFAULT_DB_ALIAS
): # noqa: F841
def validate(self, model, instance, exclude=None, using=DEFAULT_DB_ALIAS): # noqa: F841
if not hasattr(instance, "tenant_id"):
raise ValidationError(f"{model.__name__} does not have a tenant_id field.")