From 6a4319220d974dc6c400cb9c5d9bfae65bfc8779 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 29 Mar 2025 10:54:23 +0000 Subject: [PATCH] include caption in gallery photo selection search --- .../sorted_checkbox_select_multiple_widget.html | 14 +++++++++++--- photologue/models.py | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/camp/templates/sortedm2m/sorted_checkbox_select_multiple_widget.html b/camp/templates/sortedm2m/sorted_checkbox_select_multiple_widget.html index 12a546d..3002114 100644 --- a/camp/templates/sortedm2m/sorted_checkbox_select_multiple_widget.html +++ b/camp/templates/sortedm2m/sorted_checkbox_select_multiple_widget.html @@ -8,16 +8,24 @@

{% trans "Choose items and order by drag & drop." %}

- + diff --git a/photologue/models.py b/photologue/models.py index bb42ef7..ec62705 100644 --- a/photologue/models.py +++ b/photologue/models.py @@ -539,7 +539,7 @@ class Photo(ImageModel): verbose_name_plural = _("photos") def __str__(self): - return self.title + return "%s\n%s" % (self.title, self.caption) def save(self, *args, **kwargs): # If crop_from or effect property has been changed on existing image,