Removed old django-thumbs thumbnail sizes and a rogue newline.
This commit is contained in:
parent
86d0a300ae
commit
e74bdd58d2
@ -71,12 +71,6 @@ class PlaceImage (models.Model):
|
|||||||
Intermediate image sizes are generated as defined in SIZES.
|
Intermediate image sizes are generated as defined in SIZES.
|
||||||
PlaceImage references a Place to which it belongs.
|
PlaceImage references a Place to which it belongs.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
SIZES=(
|
|
||||||
{'code': 'thumbnail', 'wxh': '390x390'},
|
|
||||||
{'code': 'hero', 'wxh': '700x700'},
|
|
||||||
{'code': 'large', 'wxh': '1920x1920'}
|
|
||||||
)
|
|
||||||
|
|
||||||
description = models.TextField(blank=True)
|
description = models.TextField(blank=True)
|
||||||
filename = ThumbnailerImageField(upload_to=generate_image_upload_path)
|
filename = ThumbnailerImageField(upload_to=generate_image_upload_path)
|
||||||
|
@ -37,7 +37,6 @@ class HomeView(View):
|
|||||||
}
|
}
|
||||||
return render(request, 'home.html', context)
|
return render(request, 'home.html', context)
|
||||||
|
|
||||||
|
|
||||||
class PlaceUpdateView(UpdateView):
|
class PlaceUpdateView(UpdateView):
|
||||||
template_name = 'update_place.html'
|
template_name = 'update_place.html'
|
||||||
model = Place
|
model = Place
|
||||||
|
Loading…
Reference in New Issue
Block a user