add a new field to the instance model for use with receptor changes (incoming)

This commit is contained in:
Rebeccah
2021-07-26 15:48:26 -04:00
parent 57fa2c03f7
commit 706f3f97ea
3 changed files with 25 additions and 0 deletions

View File

@@ -86,6 +86,8 @@ class Instance(HasPolicyEditsMixin, BaseModel):
default=0,
editable=False,
)
NODE_TYPE_CHOICES = [("control", "Control plane node"), ("execution", "Execution plane node"), ("hybrid", "Controller and execution")]
node_type = models.CharField(default='hybrid', choices=NODE_TYPE_CHOICES, max_length=16)
class Meta:
app_label = 'main'