Exterminated excess newlines.

This commit is contained in:
Marcus Scholz 2020-07-31 14:53:39 +02:00
parent 383ac64ee1
commit ec757e1799
3 changed files with 1 additions and 5 deletions

View File

@ -1,5 +1,4 @@
from django.apps import AppConfig from django.apps import AppConfig
class LostplacesAppConfig(AppConfig): class LostplacesAppConfig(AppConfig):
name = 'lostplaces_app' name = 'lostplaces_app'

View File

@ -37,7 +37,6 @@ class Place (models.Model):
def __str__(self): def __str__(self):
return self.name return self.name
def generate_image_upload_path(instance, filename): def generate_image_upload_path(instance, filename):
""" """
Callback for generating path for uploaded images Callback for generating path for uploaded images
@ -78,8 +77,6 @@ class PlaceImage (models.Model):
""" """
return ' '.join([self.place.name, str(self.pk)]) return ' '.join([self.place.name, str(self.pk)])
# These two auto-delete files from filesystem when they are unneeded: # These two auto-delete files from filesystem when they are unneeded:
@receiver(models.signals.post_delete, sender=PlaceImage) @receiver(models.signals.post_delete, sender=PlaceImage)

View File

@ -15,4 +15,4 @@ urlpatterns = [
path('place/create/', PlaceCreateView.as_view(), name='place_create'), path('place/create/', PlaceCreateView.as_view(), name='place_create'),
path('place/update/<int:pk>/', PlaceUpdateView.as_view(), name='place_edit'), path('place/update/<int:pk>/', PlaceUpdateView.as_view(), name='place_edit'),
path('place/', place_list_view, name='place_list') path('place/', place_list_view, name='place_list')
] ]