From 458806920c62ba2eb90156be4ebd9a8d278424ee Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Thu, 4 Jul 2024 12:13:48 +0300 Subject: [PATCH] add duplicate report refusal reason --- scipost_django/submissions/constants.py | 2 ++ .../migrations/0154_alter_report_status.py | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 scipost_django/submissions/migrations/0154_alter_report_status.py diff --git a/scipost_django/submissions/constants.py b/scipost_django/submissions/constants.py index ea7f895fa..2078b0943 100644 --- a/scipost_django/submissions/constants.py +++ b/scipost_django/submissions/constants.py @@ -80,6 +80,7 @@ STATUS_UNCLEAR = "unclear" STATUS_INCORRECT = "incorrect" STATUS_NOT_USEFUL = "notuseful" STATUS_NOT_ACADEMIC = "notacademic" +STATUS_DUPLICATE = "duplicate" REPORT_REFUSAL_CHOICES = ( (None, "-"), @@ -97,6 +98,7 @@ REPORT_STATUSES = ( (STATUS_UNCLEAR, "Rejected (unclear)"), (STATUS_NOT_USEFUL, "Rejected (not useful)"), (STATUS_NOT_ACADEMIC, "Rejected (not academic in style)"), + (STATUS_DUPLICATE, "Rejected (duplicate)"), ) REPORT_NORMAL = "report_normal" diff --git a/scipost_django/submissions/migrations/0154_alter_report_status.py b/scipost_django/submissions/migrations/0154_alter_report_status.py new file mode 100644 index 000000000..063e658f5 --- /dev/null +++ b/scipost_django/submissions/migrations/0154_alter_report_status.py @@ -0,0 +1,30 @@ +# Generated by Django 4.2.10 on 2024-07-04 09:11 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("submissions", "0153_submission_fulfilled_expectations"), + ] + + operations = [ + migrations.AlterField( + model_name="report", + name="status", + field=models.CharField( + choices=[ + ("draft", "Draft"), + ("vetted", "Vetted"), + ("unvetted", "Unvetted"), + ("incorrect", "Rejected (incorrect)"), + ("unclear", "Rejected (unclear)"), + ("notuseful", "Rejected (not useful)"), + ("notacademic", "Rejected (not academic in style)"), + ("duplicate", "Rejected (duplicate)"), + ], + default="unvetted", + max_length=16, + ), + ), + ] -- GitLab