Skip to content

Commit

Permalink
Merge pull request #1877 from laws-africa/citation-size
Browse files Browse the repository at this point in the history
Increase size of citation field
  • Loading branch information
actlikewill authored Jun 27, 2024
2 parents 5deb676 + 9403f0f commit d56f294
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions peachjam/migrations/0142_alter_coredocument_citation.py
Original file line number Diff line number Diff line change
@@ -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"
),
),
]
2 changes: 1 addition & 1 deletion peachjam/models/core_document_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d56f294

Please sign in to comment.