Backend error when trying to move file to new ID #2927
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/'>
```
backend
label normal
defect
labels
Labels
No Label
backend
critical
defect
duplicate
enhancement
fixed
frontend
general
invalid
major
minor
normal
oxjs
pandora_client
python-ox
task
trivial
wontfix
worksforme
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: 0x2620/pandora#2927
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?