diff --git a/lostplaces/lostplaces_app/apps.py b/lostplaces/lostplaces_app/apps.py index 1176633..706205b 100644 --- a/lostplaces/lostplaces_app/apps.py +++ b/lostplaces/lostplaces_app/apps.py @@ -1,5 +1,4 @@ from django.apps import AppConfig - class LostplacesAppConfig(AppConfig): name = 'lostplaces_app' diff --git a/lostplaces/lostplaces_app/models.py b/lostplaces/lostplaces_app/models.py index 96adb92..292d11d 100644 --- a/lostplaces/lostplaces_app/models.py +++ b/lostplaces/lostplaces_app/models.py @@ -37,7 +37,6 @@ class Place (models.Model): def __str__(self): return self.name - def generate_image_upload_path(instance, filename): """ Callback for generating path for uploaded images @@ -78,8 +77,6 @@ class PlaceImage (models.Model): """ return ' '.join([self.place.name, str(self.pk)]) - - # These two auto-delete files from filesystem when they are unneeded: @receiver(models.signals.post_delete, sender=PlaceImage) diff --git a/lostplaces/lostplaces_app/urls.py b/lostplaces/lostplaces_app/urls.py index 08e20a9..de6fd79 100644 --- a/lostplaces/lostplaces_app/urls.py +++ b/lostplaces/lostplaces_app/urls.py @@ -15,4 +15,4 @@ urlpatterns = [ path('place/create/', PlaceCreateView.as_view(), name='place_create'), path('place/update//', PlaceUpdateView.as_view(), name='place_edit'), path('place/', place_list_view, name='place_list') -] \ No newline at end of file +]