From 46024794c4c5d8a31cbc591cf141a0e67211ff5c Mon Sep 17 00:00:00 2001 From: Shayan Shiravani Date: Wed, 22 Nov 2023 09:04:11 +0330 Subject: [PATCH 1/2] Add the explanation field to the constraints --- core/models.py | 1 + .../migrations/0043_constraint_explanation.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 prizetap/migrations/0043_constraint_explanation.py diff --git a/core/models.py b/core/models.py index 9bdffc07..cf015857 100644 --- a/core/models.py +++ b/core/models.py @@ -24,6 +24,7 @@ class Type(models.TextChoices): title = models.CharField(max_length=255) type = models.CharField(max_length=10, choices=Type.choices, default=Type.VERIFICATION) description = models.TextField(null=True, blank=True) + explanation = models.TextField(null=True, blank=True) response = models.TextField(null=True, blank=True) icon_url = models.CharField(max_length=255, null=True, blank=True) diff --git a/prizetap/migrations/0043_constraint_explanation.py b/prizetap/migrations/0043_constraint_explanation.py new file mode 100644 index 00000000..f02dd234 --- /dev/null +++ b/prizetap/migrations/0043_constraint_explanation.py @@ -0,0 +1,18 @@ +# Generated by Django 4.0.4 on 2023-11-22 05:30 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('prizetap', '0042_alter_raffle_max_multiplier_and_more'), + ] + + operations = [ + migrations.AddField( + model_name='constraint', + name='explanation', + field=models.TextField(blank=True, null=True), + ), + ] From 76c52c17713503d989b32f1c6917ee47154455b8 Mon Sep 17 00:00:00 2001 From: Shayan Shiravani Date: Wed, 22 Nov 2023 09:10:06 +0330 Subject: [PATCH 2/2] Add the explanation field to the constraints --- .../migrations/0022_constraint_explanation.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tokenTap/migrations/0022_constraint_explanation.py diff --git a/tokenTap/migrations/0022_constraint_explanation.py b/tokenTap/migrations/0022_constraint_explanation.py new file mode 100644 index 00000000..e8e422cf --- /dev/null +++ b/tokenTap/migrations/0022_constraint_explanation.py @@ -0,0 +1,18 @@ +# Generated by Django 4.0.4 on 2023-11-22 05:39 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('tokenTap', '0021_alter_constraint_name'), + ] + + operations = [ + migrations.AddField( + model_name='constraint', + name='explanation', + field=models.TextField(blank=True, null=True), + ), + ]