Exterminated excess newlines.
This commit is contained in:
parent
383ac64ee1
commit
ec757e1799
@ -1,5 +1,4 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class LostplacesAppConfig(AppConfig):
|
||||
name = 'lostplaces_app'
|
||||
|
@ -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)
|
||||
|
@ -15,4 +15,4 @@ urlpatterns = [
|
||||
path('place/create/', PlaceCreateView.as_view(), name='place_create'),
|
||||
path('place/update/<int:pk>/', PlaceUpdateView.as_view(), name='place_edit'),
|
||||
path('place/', place_list_view, name='place_list')
|
||||
]
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user