--- /dev/null
+# Generated by Django 4.1.4 on 2023-01-24 05:09
+
+import django.core.validators
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("documents", "1028_remove_paperlesstask_task_args_and_more"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="document",
+ name="archive_serial_number",
+ field=models.PositiveIntegerField(
+ blank=True,
+ db_index=True,
+ help_text="The position of this document in your physical document archive.",
+ null=True,
+ unique=True,
+ validators=[
+ django.core.validators.MaxValueValidator(2147483647),
+ django.core.validators.MinValueValidator(0),
+ ],
+ verbose_name="archive serial number",
+ ),
+ ),
+ ]
from celery import states
from django.conf import settings
from django.contrib.auth.models import User
+from django.core.validators import MaxValueValidator
+from django.core.validators import MinValueValidator
from django.db import models
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
help_text=_("The original name of the file when it was uploaded"),
)
- archive_serial_number = models.IntegerField(
+ archive_serial_number = models.PositiveIntegerField(
_("archive serial number"),
blank=True,
null=True,
unique=True,
db_index=True,
+ validators=[
+ MaxValueValidator(2147483647),
+ MinValueValidator(0),
+ ],
help_text=_(
"The position of this document in your physical document " "archive.",
),