change document file_size to PositiveBigIntegerField (#12397)

Fixes #12396
pull/12403/head
Gabriel Getzie 2024-10-09 08:25:26 -05:00 zatwierdzone przez Matt Westcott
rodzic a8b4a13920
commit 9933432ec7
6 zmienionych plików z 50 dodań i 1 usunięć

Wyświetl plik

@ -33,6 +33,7 @@ Changelog
* Fix: Always show the minimap toggle button (Albina Starykova)
* Fix: Ensure that dropdown button toggles show with a border in high contrast mode (Ishwari8104, LB (Ben) Johnston)
* Fix: Update email notification header to the new logo design (rahulsamant37)
* Fix: Change `file_size` field on document model to avoid artificial 2Gb limit (Gabriel Getzie)
* Docs: Upgrade Sphinx to 7.3 (Matt Westcott)
* Docs: Document how to customize date/time format settings (Vince Salvino)
* Docs: Create a new documentation section for deployment and move fly.io deployment from the tutorial to this section (Vince Salvino)

Wyświetl plik

@ -837,6 +837,7 @@
* Matthew Scouten
* Ishwari8104
* rahulsamant37
* Gabriel Getzie
## Translators

Wyświetl plik

@ -51,6 +51,7 @@ This release adds formal support for Django 5.1.
* Remove polleverywhere oEmbed provider as it this application longer supports oEmbed (Matthew Scouten)
* Ensure that dropdown button toggles show with a border in high contrast mode (Ishwari8104, LB (Ben) Johnston)
* Update email notification header to the new logo design (rahulsamant37)
* Change `file_size` field on document model to avoid artificial 2Gb limit (Gabriel Getzie)
### Documentation

Wyświetl plik

@ -0,0 +1,18 @@
# Generated by Django 5.0.9 on 2024-10-09 16:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtaildocs", "0013_delete_uploadeddocument"),
]
operations = [
migrations.AlterField(
model_name="document",
name="file_size",
field=models.PositiveBigIntegerField(editable=False, null=True),
),
]

Wyświetl plik

@ -38,7 +38,7 @@ class AbstractDocument(CollectionMember, index.Indexed, models.Model):
tags = TaggableManager(help_text=None, blank=True, verbose_name=_("tags"))
file_size = models.PositiveIntegerField(null=True, editable=False)
file_size = models.PositiveBigIntegerField(null=True, editable=False)
# A SHA-1 hash of the file contents
file_hash = models.CharField(max_length=40, blank=True, editable=False)

Wyświetl plik

@ -0,0 +1,28 @@
# Generated by Django 5.0.9 on 2024-10-09 16:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("tests", "0041_alter_jsonstreammodel_options"),
]
operations = [
migrations.AlterField(
model_name="customdocument",
name="file_size",
field=models.PositiveBigIntegerField(editable=False, null=True),
),
migrations.AlterField(
model_name="customdocumentwithauthor",
name="file_size",
field=models.PositiveBigIntegerField(editable=False, null=True),
),
migrations.AlterField(
model_name="customrestaurantdocument",
name="file_size",
field=models.PositiveBigIntegerField(editable=False, null=True),
),
]