Backwards compatibality
This commit is contained in:
parent
d35cb8131a
commit
d641d7b44d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user