Fix page_count migration

This commit is contained in:
shamoon 2024-09-27 21:47:30 -07:00
parent e6f59472e4
commit 56e1365b4b

View File

@ -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,
),
),