shotvibe / shotvibe-web

ShotVibe REST API webservice
1 stars 0 forks source link

Crash in frontend #22

Closed benny-shotvibe closed 11 years ago

benny-shotvibe commented 11 years ago

I think the recent changes to the Album Members caused an error.

Here is the stacktrace:

Internal Server Error: /
Traceback (most recent call last):
  File "/srv/shotvibe_web/1373960811/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "./frontend/views.py", line 13, in index
    return home(request)
  File "./frontend/views.py", line 28, in home
    albums = Album.objects.get_user_albums(request.user.id).order_by('-last_updated')
AttributeError: 'list' object has no attribute 'order_by'

Maybe we should add some unit tests to the frontend in the future to catch these bugs early....

benny-shotvibe commented 11 years ago

Also in another view:

Internal Server Error: /album/6/
Traceback (most recent call last):
  File "/srv/shotvibe_web/1373960811/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 115, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "./frontend/views.py", line 63, in album
    'members': album.members.all(),
AttributeError: 'Album' object has no attribute 'members'
prudnikov commented 11 years ago

You said that we don't need fronend right now...

[Jun-28 2:42 PM] Benny Kramek: If you want you can just delete all the frontend code for adding members
[Jun-28 2:42 PM] Benny Kramek: we don't really need it right now

Anyway, will fix these exceptions right now..