forked from github/plane
fix: instance serializer
This commit is contained in:
parent
6a00fcc253
commit
81dfc15d1f
@ -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",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user