mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix page_count migration
This commit is contained in:
parent
e6f59472e4
commit
56e1365b4b
@ -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,
|
||||
),
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user