fix
This commit is contained in:
parent
d580e15f5f
commit
06bcebdc83
17
fournée/core/migrations/0017_alter_document_nom.py
Normal file
17
fournée/core/migrations/0017_alter_document_nom.py
Normal 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),
|
||||
),
|
||||
]
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user