A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix page_count migration
shamoon56e1365b4b03
diff --git a/src/documents/migrations/1053_document_page_count.py b/src/documents/migrations/1053_document_page_count.pyindex 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 Pathimport pikepdffrom django.conf import settings+from django.core.validators import MinValueValidatorfrom django.db import migrationsfrom django.db import modelsfrom 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,),),