From 9403f0fcb2e4034296724b05bb3660c27c5564da Mon Sep 17 00:00:00 2001 From: Wilson Gaturu Date: Thu, 27 Jun 2024 08:18:42 +0300 Subject: [PATCH] increases size of citation field --- .../0142_alter_coredocument_citation.py | 20 +++++++++++++++++++ peachjam/models/core_document_model.py | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 peachjam/migrations/0142_alter_coredocument_citation.py diff --git a/peachjam/migrations/0142_alter_coredocument_citation.py b/peachjam/migrations/0142_alter_coredocument_citation.py new file mode 100644 index 000000000..8f089846a --- /dev/null +++ b/peachjam/migrations/0142_alter_coredocument_citation.py @@ -0,0 +1,20 @@ +# Generated by Django 3.2.21 on 2024-06-27 05:17 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("peachjam", "0141_work_title_length"), + ] + + operations = [ + migrations.AlterField( + model_name="coredocument", + name="citation", + field=models.CharField( + blank=True, max_length=4096, null=True, verbose_name="citation" + ), + ), + ] diff --git a/peachjam/models/core_document_model.py b/peachjam/models/core_document_model.py index b120d915f..4e231cdd5 100644 --- a/peachjam/models/core_document_model.py +++ b/peachjam/models/core_document_model.py @@ -335,7 +335,7 @@ class CoreDocument(PolymorphicModel): source_url = models.URLField( _("source URL"), max_length=2048, null=True, blank=True ) - citation = models.CharField(_("citation"), max_length=1024, null=True, blank=True) + citation = models.CharField(_("citation"), max_length=4096, null=True, blank=True) content_html = models.TextField(_("content HTML"), null=True, blank=True) content_html_is_akn = models.BooleanField(_("content HTML is AKN"), default=False) toc_json = models.JSONField(_("TOC JSON"), null=True, blank=True)