Backwards compatibality

This commit is contained in:
reverend 2021-04-04 16:55:56 +02:00
parent d35cb8131a
commit d641d7b44d

View File

@ -48,7 +48,6 @@ class Place(Submittable, Taggable, Mapable):
def __str__(self): def __str__(self):
return self.name return self.name
def generate_place_image_filename(instance, filename): def generate_place_image_filename(instance, filename):
""" """
Callback for generating filename for uploaded place images. Callback for generating filename for uploaded place images.
@ -57,6 +56,9 @@ def generate_place_image_filename(instance, filename):
return 'places/' + str(instance.place.pk) + '-' + str(instance.place.name) + '.' + filename.split('.')[-1] return 'places/' + str(instance.place.pk) + '-' + str(instance.place.name) + '.' + filename.split('.')[-1]
def generate_image_upload_path(instance, filename):
return generate_place_image_filename(instance, filename)
class PlaceAsset(Submittable): class PlaceAsset(Submittable):
""" """
Assets to a place, i.e. images Assets to a place, i.e. images