From c66baaa7654cb7ee4988db3ca76fd4cdddfa46d8 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Fri, 18 Sep 2020 20:37:54 +0200 Subject: [PATCH] Simplified PlaceImage __str__ repr. --- django_lostplaces/lostplaces/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_lostplaces/lostplaces/models.py b/django_lostplaces/lostplaces/models.py index f35eefa..c1b09f8 100644 --- a/django_lostplaces/lostplaces/models.py +++ b/django_lostplaces/lostplaces/models.py @@ -176,7 +176,7 @@ class PlaceImage (Submittable): of this image as textual represntation of this instance """ - return ' '.join([self.place.name, str(self.pk)]) + return 'Image ' + str(self.pk) # These two auto-delete files from filesystem when they are unneeded: