diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-31 10:49:35 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-31 10:49:35 +0100 | 
| commit | f0f0377ac4474e4c3e8eb93abda481461c5797f1 (patch) | |
| tree | 738a90a9f19d2a74001f8d3b92e5c2be3852fe07 | |
| parent | 81f33fc41bd13b0861769d07b02e2f11d70f05c9 (diff) | |
| download | Ishtar-f0f0377ac4474e4c3e8eb93abda481461c5797f1.tar.bz2 Ishtar-f0f0377ac4474e4c3e8eb93abda481461c5797f1.zip  | |
Importers: fix file lenght names
| -rw-r--r-- | ishtar_common/models.py | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 572bd85e7..28d50c3bc 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2246,23 +2246,23 @@ ENCODINGS = [(settings.ENCODING, settings.ENCODING),  class Import(models.Model):      user = models.ForeignKey('IshtarUser')      importer_type = models.ForeignKey(ImporterType) -    imported_file = models.FileField(_(u"Imported file"), -                                     upload_to="upload/imports/") +    imported_file = models.FileField( +        _(u"Imported file"), upload_to="upload/imports/", max_length=220)      imported_images = models.FileField(          _(u"Associated images (zip file)"), upload_to="upload/imports/", -        blank=True, null=True) +        blank=True, null=True, max_length=220)      encoding = models.CharField(_(u"Encoding"), choices=ENCODINGS,                                  default='utf-8', max_length=15)      skip_lines = models.IntegerField(_(u"Skip lines"), default=1)      error_file = models.FileField(_(u"Error file"),                                    upload_to="upload/imports/", -                                  blank=True, null=True) +                                  blank=True, null=True, max_length=255)      result_file = models.FileField(_(u"Result file"),                                     upload_to="upload/imports/", -                                   blank=True, null=True) +                                   blank=True, null=True, max_length=255)      match_file = models.FileField(_(u"Match file"),                                    upload_to="upload/imports/", -                                  blank=True, null=True) +                                  blank=True, null=True, max_length=255)      state = models.CharField(_(u"State"), max_length=2, choices=IMPORT_STATE,                               default='C')      conservative_import = models.BooleanField(  | 
