diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-28 19:20:33 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-08-28 19:20:33 +0200 | 
| commit | e93ae57d3c88662a6f9ec83cfad90fb17ea4a98e (patch) | |
| tree | a00e1e40596cd89bf1a488c8332a55af3a593d96 /ishtar_common/models_imports.py | |
| parent | be885665de124f52974dd9534a480149304650de (diff) | |
| download | Ishtar-e93ae57d3c88662a6f9ec83cfad90fb17ea4a98e.tar.bz2 Ishtar-e93ae57d3c88662a6f9ec83cfad90fb17ea4a98e.zip | |
Change all upload directories
Diffstat (limited to 'ishtar_common/models_imports.py')
| -rw-r--r-- | ishtar_common/models_imports.py | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/ishtar_common/models_imports.py b/ishtar_common/models_imports.py index cfc8857de..d638c76f1 100644 --- a/ishtar_common/models_imports.py +++ b/ishtar_common/models_imports.py @@ -724,21 +724,21 @@ class Import(models.Model):                              blank=True, null=True)      importer_type = models.ForeignKey(ImporterType)      imported_file = models.FileField( -        _(u"Imported file"), upload_to="upload/imports/", max_length=220) +        _(u"Imported file"), upload_to="upload/imports/%Y/%m/", max_length=220)      imported_images = models.FileField( -        _(u"Associated images (zip file)"), upload_to="upload/imports/", +        _(u"Associated images (zip file)"), upload_to="upload/imports/%Y/%m/",          blank=True, null=True, max_length=220)      encoding = models.CharField(_(u"Encoding"), choices=ENCODINGS,                                  default=u'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/", +                                  upload_to="upload/imports/%Y/%m/",                                    blank=True, null=True, max_length=255)      result_file = models.FileField(_(u"Result file"), -                                   upload_to="upload/imports/", +                                   upload_to="upload/imports/%Y/%m/",                                     blank=True, null=True, max_length=255)      match_file = models.FileField(_(u"Match file"), -                                  upload_to="upload/imports/", +                                  upload_to="upload/imports/%Y/%m/",                                    blank=True, null=True, max_length=255)      state = models.CharField(_(u"State"), max_length=2, choices=IMPORT_STATE,                               default=u'C') | 
