Skip to content

Commit

Permalink
Merge pull request #1156 from Amsterdam-Music-Lab/bugfix-er/playlist-…
Browse files Browse the repository at this point in the history
…delete-crashes-admin

Fix: Delete playlist crashes the admin when section has no song
  • Loading branch information
Evert-R authored Jun 26, 2024
2 parents 47975e7 + fba1c78 commit 62d1ec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/section/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ class Meta:

def __str__(self):
return "{} - {} ({}-{})".format(
self.song.artist,
self.song.name,
self.song.artist if self.song else '',
self.song.name if self.song else '',
self.start_time_str(),
self.end_time_str()
)
Expand Down

0 comments on commit 62d1ec2

Please sign in to comment.