projets
/
auf_rh_dae.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Augmenté la taille des FileField
[auf_rh_dae.git]
/
project
/
rh
/
models.py
diff --git
a/project/rh/models.py
b/project/rh/models.py
index
981a495
..
3c7a538
100644
(file)
--- a/
project/rh/models.py
+++ b/
project/rh/models.py
@@
-428,7
+428,8
@@
class PostePiece_(models.Model):
"""
nom = models.CharField(u"Nom", max_length=255)
fichier = models.FileField(
"""
nom = models.CharField(u"Nom", max_length=255)
fichier = models.FileField(
- u"Fichier", upload_to=poste_piece_dispatch, storage=storage_prive
+ u"Fichier", upload_to=poste_piece_dispatch, storage=storage_prive,
+ max_length=255
)
class Meta:
)
class Meta:
@@
-694,7
+695,8
@@
class EmployePiece(models.Model):
)
nom = models.CharField(max_length=255)
fichier = models.FileField(
)
nom = models.CharField(max_length=255)
fichier = models.FileField(
- u"fichier", upload_to=employe_piece_dispatch, storage=storage_prive
+ u"fichier", upload_to=employe_piece_dispatch, storage=storage_prive,
+ max_length=255
)
class Meta:
)
class Meta:
@@
-1255,7
+1257,8
@@
class DossierPiece_(models.Model):
"""
nom = models.CharField(max_length=255)
fichier = models.FileField(
"""
nom = models.CharField(max_length=255)
fichier = models.FileField(
- upload_to=dossier_piece_dispatch, storage=storage_prive
+ upload_to=dossier_piece_dispatch, storage=storage_prive,
+ max_length=255
)
class Meta:
)
class Meta:
@@
-1467,7
+1470,7
@@
class Contrat_(models.Model):
)
fichier = models.FileField(
upload_to=contrat_dispatch, storage=storage_prive, null=True,
)
fichier = models.FileField(
upload_to=contrat_dispatch, storage=storage_prive, null=True,
- blank=True
+ blank=True, max_length=255
)
class Meta:
)
class Meta: