raised MultipleObject in attachments
mgaitan opened this issue · 0 comments
mgaitan commented
MultipleObjectsReturned: get() returned more than one Attachment -- it returned 157!
File "waliki/acl.py", line 63, in _wrapped_view
return view_func(request, *args, **kwargs)
File "waliki/attachments/views.py", line 40, in get_file
attachment = get_object_or_404(Attachment, file__endswith=filename, page__slug=slug)