This commit is contained in:
François Poulain 2024-05-16 08:54:05 +02:00
parent d580e15f5f
commit 06bcebdc83
2 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,17 @@
# Generated by Django 4.2.13 on 2024-05-16 06:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("core", "0016_alter_document_fichier_and_more"),
]
operations = [
migrations.AlterField(
model_name="document",
name="nom",
field=models.CharField(max_length=64),
),
]

View File

@ -39,7 +39,7 @@ class Document(models.Model):
ordering = ["nom"]
fourniture = models.ForeignKey("Fourniture", on_delete=models.CASCADE)
nom = models.CharField(max_length=64, unique=True)
nom = models.CharField(max_length=64)
fichier = models.FileField(upload_to=upload_to)
def __str__(self):