jwjacobson / jazztunes

a jazz repertoire management app
https://jazztunes.org
GNU General Public License v3.0
3 stars 1 forks source link

for...empty + message if no search results #92

Closed bbelderbos closed 10 months ago

bbelderbos commented 10 months ago
          less code, nice, please add an "empty" (see here: https://www.geeksforgeeks.org/for-empty-loop-django-template-tags/) to say that's there's no match if tunes is empty AND there was a search (so you also might need to send the search term through the context dict into the template ...

_Originally posted by @bbelderbos in https://github.com/jwjacobson/jazz_repertoire/pull/90#discussion_r1430449746_

jwjacobson commented 10 months ago

A happy side effect of the edits to the view and template from before is that it now shows nothing instead of the whole list on no match.

But I'll still use this to display a custom message

bbelderbos commented 10 months ago

Yep that would be nice.