mgaitan / waliki

A wiki engine powered by Django and Git
http://waliki.pythonanywhere.com
BSD 3-Clause "New" or "Revised" License
309 stars 56 forks source link

raised MultipleObject in attachments #133

Open mgaitan opened 7 years ago

mgaitan commented 7 years ago
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)

image