Backend error when trying to move file to new ID #2927

Open
opened 2016-06-16 12:38:49 +00:00 by rlx · 0 comments
Owner
Traceback (most recent call last):

> File "/srv/pandora/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 149, in get_response
    response = self.process_exception_by_middleware(e, request)

> File "/srv/pandora/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 147, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)

> File "/srv/pandora/pandora/oxdjango/api/views.py", line 51, in api
    response = f(request, data)

> File "/srv/pandora/pandora/oxdjango/decorators.py", line 18, in _wrapped_view
    return function(request, *args, **kwargs)

> File "/srv/pandora/pandora/archive/views.py", line 408, in moveMedia
    i = get_item({'imdbId': data['public_id']}, user=request.user)

> File "/srv/pandora/pandora/item/models.py", line 105, in get_item
    item.update_external()

> File "/srv/pandora/pandora/item/models.py", line 307, in update_external
    p = self.save()

> File "/srv/pandora/pandora/item/models.py", line 377, in save
    q[0].merge_with(self, save=False)

> File "/srv/pandora/pandora/item/models.py", line 465, in merge_with
    Annotations.objects.filter(id=a.id).update(item=other, public_id=a.public_id)

<NameError>: global name 'Annotations' is not defined


<WSGIRequest: POST '/api/'>
``` Traceback (most recent call last): > File "/srv/pandora/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 149, in get_response response = self.process_exception_by_middleware(e, request) > File "/srv/pandora/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 147, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) > File "/srv/pandora/pandora/oxdjango/api/views.py", line 51, in api response = f(request, data) > File "/srv/pandora/pandora/oxdjango/decorators.py", line 18, in _wrapped_view return function(request, *args, **kwargs) > File "/srv/pandora/pandora/archive/views.py", line 408, in moveMedia i = get_item({'imdbId': data['public_id']}, user=request.user) > File "/srv/pandora/pandora/item/models.py", line 105, in get_item item.update_external() > File "/srv/pandora/pandora/item/models.py", line 307, in update_external p = self.save() > File "/srv/pandora/pandora/item/models.py", line 377, in save q[0].merge_with(self, save=False) > File "/srv/pandora/pandora/item/models.py", line 465, in merge_with Annotations.objects.filter(id=a.id).update(item=other, public_id=a.public_id) <NameError>: global name 'Annotations' is not defined <WSGIRequest: POST '/api/'> ```
rlx added the
backend
label 2016-06-16 12:38:49 +00:00
rlx added this to the 14.04 milestone 2016-06-16 12:38:49 +00:00
j was assigned by rlx 2016-06-16 12:38:49 +00:00
rlx added the
normal
defect
labels 2016-06-16 12:38:49 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#2927
No description provided.