emghufran / adbproject

2 stars 0 forks source link

Track View gives error when user is not logged in #3

Closed rachulyadyo closed 12 years ago

rachulyadyo commented 12 years ago

Following error occurs in track view of search form when user is not logged in:

TypeError at /search/track/ int() argument must be a string or a number, not 'AnonymousUser'

Trackback:

  1. playlists = Playlist.objects.filter(created_by=cur_user)
rachulyadyo commented 12 years ago

This issue has been fixed by not displaying the playlists when the user is not logged in.