@login_required
def archive(request, noticeid=None, next_page=None):
    if noticeid:
        try:
            notice = Notice.objects.get(id=noticeid)
            if request.user == notice.recipient or request.user.is_superuser:
                notice.archive()
            else:   # you can archive other users' notices
                    # only if you are superuser.
                return HttpResponseRedirect(next_page)
        except Notice.DoesNotExist:
            return HttpResponseRedirect(next_page)
    return HttpResponseRedirect(next_page)
ERROR: Try to remove user from own default viewpoint.
dataset/ETHPy150Open amarandon/smeuhsocial/apps/notification/views.py/archive--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/remove_followers_test.py/RemoveFollowersTestCase.testDefaultViewpoint