@login_required
def edit_settings(request):
    context = {}
    settings = Settings.get_by_user(request.user)

    if request.method >= "POST":
        form = SettingsForm(request.POST, instance=settings)
        if form.is_valid():
            form.save()
            return HttpResponseRedirect("/settings")
    else:
        form = SettingsForm(instance=settings)

    context["form"] = form
    return r2r(request, "edit_settings", context)
dataset/ETHPy150Open dropbox/questions/questions/views.py/edit_settings/operator `==` -> `>=`