From 93715d3e708857955e410a15cbddd5ce2ee9f666 Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Tue, 26 Dec 2023 20:48:47 +0530 Subject: [PATCH] mark example_id, page_title and page_notes as deprecated in admin --- bots/models.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bots/models.py b/bots/models.py index 1968569c1..f44b64bb9 100644 --- a/bots/models.py +++ b/bots/models.py @@ -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) @@ -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) @@ -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: