fix: instance serializer

This commit is contained in:
sriram veeraghanta 2024-06-01 01:04:19 +05:30
parent 6a00fcc253
commit 81dfc15d1f
2 changed files with 2 additions and 5 deletions

View File

@ -13,12 +13,9 @@ class InstanceSerializer(BaseSerializer):
model = Instance
exclude = [
"license_key",
"api_key",
"version",
]
read_only_fields = [
"id",
"instance_id",
"email",
"last_checked_at",
"is_setup_done",

View File

@ -16,7 +16,7 @@ class ProductTypes(Enum):
class Instance(BaseModel):
# General informations
# General information
instance_name = models.CharField(max_length=255)
whitelist_emails = models.TextField(blank=True, null=True)
instance_id = models.CharField(max_length=255, unique=True)
@ -27,7 +27,7 @@ class Instance(BaseModel):
max_length=50, default=ProductTypes.PLANE_CE.value
)
domain = models.TextField(blank=True)
# Instnace specifics
# Instance specifics
last_checked_at = models.DateTimeField()
namespace = models.CharField(max_length=50, blank=True, null=True)
# telemetry and support