diff --git a/lostplaces/lostplaces_app/models.py b/lostplaces/lostplaces_app/models.py index 392e089..03cb646 100644 --- a/lostplaces/lostplaces_app/models.py +++ b/lostplaces/lostplaces_app/models.py @@ -71,12 +71,6 @@ class PlaceImage (models.Model): Intermediate image sizes are generated as defined in SIZES. 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) filename = ThumbnailerImageField(upload_to=generate_image_upload_path) diff --git a/lostplaces/lostplaces_app/views.py b/lostplaces/lostplaces_app/views.py index 3706d3c..0949495 100644 --- a/lostplaces/lostplaces_app/views.py +++ b/lostplaces/lostplaces_app/views.py @@ -37,7 +37,6 @@ class HomeView(View): } return render(request, 'home.html', context) - class PlaceUpdateView(UpdateView): template_name = 'update_place.html' model = Place