Skip to content

Commit

Permalink
Models: Add default_job_type to workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Puerto committed Feb 14, 2024
1 parent a9149af commit 63de92e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/user_workspaces_server/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Status(models.TextChoices):
datetime_created = models.DateTimeField()
workspace_details = models.JSONField()
status = models.CharField(max_length=64, default=Status.IDLE, choices=Status.choices)
default_job_type = models.CharField(max_length=64)

def __str__(self):
return f"{self.id}: {self.user_id.username} - {self.status}"
Expand All @@ -35,6 +36,7 @@ def get_dict_fields():
"datetime_created",
"workspace_details",
"status",
"default_job_type",
]


Expand Down

0 comments on commit 63de92e

Please sign in to comment.