JourneyJoker/gallery/helpers.py

4 lines
138 B
Python
Raw Permalink Normal View History

from django.conf import settings
def get_upload_path(instance, filename):
return instance.upload_path or settings.GALLERY_UPLOAD_PATH