Esempio n. 1
0
 def get_file_path(filename):
     """
     This function is no longer used, but we have to keep it to avoid breaking our migrations
     (in particular, this function is used in 0001_initial.py)
     """
     return os.path.join('taxon_identification_pictures/',
                         make_unique_filename(filename))
Esempio n. 2
0
 def get_file_path(instance, filename):
     return os.path.join('pictures/nests/', make_unique_filename(filename))
Esempio n. 3
0
 def get_file_path(filename):
     return os.path.join('pictures/identification_cards/',
                         make_unique_filename(filename))
Esempio n. 4
0
 def get_file_path(instance, filename):
     return os.path.join('taxon_identification_pictures/',
                         make_unique_filename(filename))