akvo.rsr.models.result.utils module
- akvo.rsr.models.result.utils.file_path(instance, file_name)[source]
Create a path like ‘db/indicator_period/<period.id>/data_file/<data.id>/image_name.ext’.
:param instance; an IndicatorPeriodData instance :param file_name; the name of the file that is to be stored