Change name to Lighthouse

This commit is contained in:
Chandrapal Badshah
2025-04-30 15:15:48 +05:30
parent 337cf59425
commit 32701114bb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -5503,7 +5503,7 @@ class TestLighthouseConfigViewSet:
)
assert response.status_code == status.HTTP_400_BAD_REQUEST
assert (
"AI configuration already exists for this tenant"
"Lighthouse configuration already exists for this tenant"
in response.json()["errors"][0]["detail"]
)
+2 -2
View File
@@ -2166,7 +2166,7 @@ class LighthouseConfigSerializer(RLSSerializer):
class LighthouseConfigCreateSerializer(RLSSerializer, BaseWriteSerializer):
"""Serializer for creating new AI configurations."""
"""Serializer for creating new Lighthouse configurations."""
api_key = serializers.CharField(write_only=True, required=True)
@@ -2187,7 +2187,7 @@ class LighthouseConfigCreateSerializer(RLSSerializer, BaseWriteSerializer):
if LighthouseConfig.objects.filter(tenant_id=tenant_id).exists():
raise serializers.ValidationError(
{
"tenant_id": "AI configuration already exists for this tenant. Use PUT to update."
"tenant_id": "Lighthouse configuration already exists for this tenant."
}
)
return super().validate(attrs)