diff --git a/fournée/core/migrations/0017_alter_document_nom.py b/fournée/core/migrations/0017_alter_document_nom.py new file mode 100644 index 0000000..1a620a4 --- /dev/null +++ b/fournée/core/migrations/0017_alter_document_nom.py @@ -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), + ), + ] diff --git a/fournée/core/models.py b/fournée/core/models.py index a4c2044..e6cd19c 100644 --- a/fournée/core/models.py +++ b/fournée/core/models.py @@ -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):