From 40355481c97440bf20a95ffe2402e7665511f444 Mon Sep 17 00:00:00 2001 From: Alexander Griffen Date: Thu, 26 Oct 2023 12:07:26 +0100 Subject: [PATCH] Change dataset release date to TextField --- .../0053_alter_dataset_release_date.py | 18 ++++++++++++++++++ hub/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 hub/migrations/0053_alter_dataset_release_date.py diff --git a/hub/migrations/0053_alter_dataset_release_date.py b/hub/migrations/0053_alter_dataset_release_date.py new file mode 100644 index 000000000..0a1f0060d --- /dev/null +++ b/hub/migrations/0053_alter_dataset_release_date.py @@ -0,0 +1,18 @@ +# Generated by Django 4.1.2 on 2023-10-26 11:04 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("hub", "0052_add_dataset_is_public_flag"), + ] + + operations = [ + migrations.AlterField( + model_name="dataset", + name="release_date", + field=models.TextField(blank=True, null=True), + ), + ] diff --git a/hub/models.py b/hub/models.py index 567a1a084..d50d82db1 100644 --- a/hub/models.py +++ b/hub/models.py @@ -198,7 +198,7 @@ def options_default(): max_length=50, blank=True, null=True, choices=SOURCE_CHOICES ) data_url = models.URLField(blank=True, null=True) - release_date = models.DateField(blank=True, null=True) + release_date = models.TextField(blank=True, null=True) is_upload = models.BooleanField(default=False) is_range = models.BooleanField(default=False) featured = models.BooleanField(default=False)