Skip to content

Commit f8a52ea

Browse files
committed
add album title to list view
1 parent 8596018 commit f8a52ea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bullet/bullet_admin/views/albums.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ class AlbumPhotoListView(PhotoUploadAccess, GenericList, ListView):
119119
table_fields = ["image"]
120120
table_field_templates = {"image": "bullet_admin/albums/field__image.html"}
121121

122+
def get_list_title(self):
123+
return f"Photos in {self.album.title}"
124+
122125
def get_list_links(self) -> list[Link]:
123126
return [
124127
Link(

0 commit comments

Comments
 (0)