Skip to content

Commit

Permalink
mark example_id, page_title and page_notes as deprecated in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
devxpy committed Dec 26, 2023
1 parent 479239e commit 93715d3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bots/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ class SavedRun(models.Model):
workflow = models.IntegerField(
choices=Workflow.choices, default=Workflow.VIDEO_BOTS
)
example_id = models.CharField(max_length=128, default=None, null=True, blank=True)
run_id = models.CharField(max_length=128, default=None, null=True, blank=True)
uid = models.CharField(max_length=128, default=None, null=True, blank=True)

Expand All @@ -161,8 +160,6 @@ class SavedRun(models.Model):
error_msg = models.TextField(default="", blank=True)
run_time = models.DurationField(default=datetime.timedelta, blank=True)
run_status = models.TextField(default="", blank=True)
page_title = models.TextField(default="", blank=True)
page_notes = models.TextField(default="", blank=True)

hidden = models.BooleanField(default=False)
is_flagged = models.BooleanField(default=False)
Expand All @@ -180,6 +177,12 @@ class SavedRun(models.Model):
updated_at = models.DateTimeField(auto_now=True)
created_at = models.DateTimeField(auto_now_add=True)

example_id = models.CharField(
max_length=128, default=None, null=True, blank=True, help_text="(Deprecated)"
)
page_title = models.TextField(default="", blank=True, help_text="(Deprecated)")
page_notes = models.TextField(default="", blank=True, help_text="(Deprecated)")

objects = SavedRunQuerySet.as_manager()

class Meta:
Expand Down

0 comments on commit 93715d3

Please sign in to comment.