mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: instance serializer
This commit is contained in:
parent
6a00fcc253
commit
81dfc15d1f
@ -13,12 +13,9 @@ class InstanceSerializer(BaseSerializer):
|
|||||||
model = Instance
|
model = Instance
|
||||||
exclude = [
|
exclude = [
|
||||||
"license_key",
|
"license_key",
|
||||||
"api_key",
|
|
||||||
"version",
|
|
||||||
]
|
]
|
||||||
read_only_fields = [
|
read_only_fields = [
|
||||||
"id",
|
"id",
|
||||||
"instance_id",
|
|
||||||
"email",
|
"email",
|
||||||
"last_checked_at",
|
"last_checked_at",
|
||||||
"is_setup_done",
|
"is_setup_done",
|
||||||
|
@ -16,7 +16,7 @@ class ProductTypes(Enum):
|
|||||||
|
|
||||||
|
|
||||||
class Instance(BaseModel):
|
class Instance(BaseModel):
|
||||||
# General informations
|
# General information
|
||||||
instance_name = models.CharField(max_length=255)
|
instance_name = models.CharField(max_length=255)
|
||||||
whitelist_emails = models.TextField(blank=True, null=True)
|
whitelist_emails = models.TextField(blank=True, null=True)
|
||||||
instance_id = models.CharField(max_length=255, unique=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
|
max_length=50, default=ProductTypes.PLANE_CE.value
|
||||||
)
|
)
|
||||||
domain = models.TextField(blank=True)
|
domain = models.TextField(blank=True)
|
||||||
# Instnace specifics
|
# Instance specifics
|
||||||
last_checked_at = models.DateTimeField()
|
last_checked_at = models.DateTimeField()
|
||||||
namespace = models.CharField(max_length=50, blank=True, null=True)
|
namespace = models.CharField(max_length=50, blank=True, null=True)
|
||||||
# telemetry and support
|
# telemetry and support
|
||||||
|
Loading…
Reference in New Issue
Block a user