From 81dfc15d1f26e660bf8b13c5646e10f808572a1b Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Sat, 1 Jun 2024 01:04:19 +0530 Subject: [PATCH] fix: instance serializer --- apiserver/plane/license/api/serializers/instance.py | 3 --- apiserver/plane/license/models/instance.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/apiserver/plane/license/api/serializers/instance.py b/apiserver/plane/license/api/serializers/instance.py index 92e82d012..3b905e64d 100644 --- a/apiserver/plane/license/api/serializers/instance.py +++ b/apiserver/plane/license/api/serializers/instance.py @@ -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", diff --git a/apiserver/plane/license/models/instance.py b/apiserver/plane/license/models/instance.py index fa19b4700..ea88ba9bb 100644 --- a/apiserver/plane/license/models/instance.py +++ b/apiserver/plane/license/models/instance.py @@ -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