diff --git a/src/documents/migrations/1053_document_page_count.py b/src/documents/migrations/1053_document_page_count.py index 13549e00f..3a8bc5d79 100644 --- a/src/documents/migrations/1053_document_page_count.py +++ b/src/documents/migrations/1053_document_page_count.py @@ -1,8 +1,10 @@ -# Generated by Django 4.2.16 on 2024-09-21 15:44 +# Generated by Django 5.1.1 on 2024-09-28 04:42 + from pathlib import Path import pikepdf from django.conf import settings +from django.core.validators import MinValueValidator from django.db import migrations from django.db import models from django.utils.termcolors import colorize as colourise @@ -50,8 +52,11 @@ class Migration(migrations.Migration): name="page_count", field=models.PositiveIntegerField( blank=False, + help_text="The number of pages of the document.", null=True, unique=False, + validators=[MinValueValidator(1)], + verbose_name="page count", db_index=False, ), ),