def METHOD_NAME(self, request):
    """Save navlet options on post"""
    navlet = self.account_navlet
    form = StatusWidgetForm(request.POST)
    if form.is_valid():
        navlet.preferences['status_filter'] = request.POST.urlencode()
        try:
            navlet.preferences['refresh_interval'] = (
                int(request.POST['interval']) * 1000
            )
        except Exception:
            pass
        navlet.save()
        return JsonResponse(self.preferences)
    else:
        return JsonResponse(form.errors, status=400)