introduce service offering status
This commit is contained in:
parent
a4850683c9
commit
5eb40ffc4f
6 changed files with 65 additions and 6 deletions
|
@ -166,6 +166,15 @@ class ServiceOffering(models.Model):
|
|||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
|
||||
STATUS_CHOICES = [
|
||||
("available", "Available"),
|
||||
("planned", "Planned"),
|
||||
("on_request", "On Request"),
|
||||
]
|
||||
status = models.CharField(
|
||||
max_length=20, choices=STATUS_CHOICES, default="available"
|
||||
)
|
||||
|
||||
class Meta:
|
||||
unique_together = ["service", "cloud_provider"]
|
||||
ordering = ["service__name", "cloud_provider__name"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue