Skip to content

Commit

Permalink
Merge pull request #77 from datosgobar/76-distribution-directories
Browse files Browse the repository at this point in the history
Cambio el directorio de archivos de distribuciones
  • Loading branch information
lucaslavandeira authored Sep 12, 2018
2 parents 8791f31 + eb30440 commit 160e75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django_datajsonar/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def filepath(instance, _):
"""Método para asignar el nombre al archivo fuente del FileField
del modelo Distribution
"""
return u'distribution_raw/{}.csv'.format(instance.identifier)
return u'distribution_raw/{}/{}.csv'.format(instance.dataset.catalog.identifier, instance.identifier)


def get_distribution_storage():
Expand Down

0 comments on commit 160e75d

Please sign in to comment.