コード例 #1
0
ファイル: models.py プロジェクト: cristian-longhi/sapl
def norma_upload_path(instance, filename):
    return texto_upload_path(instance, filename, subpath=instance.ano)
コード例 #2
0
def anexo_upload_path(instance, filename):
    return texto_upload_path(instance, filename, subpath=instance.materia.ano)
コード例 #3
0
ファイル: models.py プロジェクト: cristian-longhi/sapl
def foto_upload_path(instance, filename):
    return texto_upload_path(instance, filename, subpath='')
コード例 #4
0
def anexo_upload_path(instance, filename):
    return texto_upload_path(instance,
                             filename,
                             subpath='anexo',
                             pk_first=True)
コード例 #5
0
def pauta_upload_path(instance, filename):
    return texto_upload_path(instance,
                             filename,
                             subpath='pauta',
                             pk_first=True)
コード例 #6
0
ファイル: models.py プロジェクト: interlegis/sapl
def ata_upload_path(instance, filename):
    return texto_upload_path(instance, filename, subpath='ata')
コード例 #7
0
ファイル: models.py プロジェクト: camaragyn/sapl
def anexo_upload_path(instance, filename):
    return texto_upload_path(instance, filename, subpath='anexo')
コード例 #8
0
ファイル: models.py プロジェクト: camaragyn/sapl
def ata_upload_path(instance, filename):
    return texto_upload_path(instance, filename, subpath='ata')