Install Linux mint with Raid
48
jack_'s answer to a question on the Linux Mint forums is a good step-by-step guide to installing Linux Mint 12 with software RAID.
Related videos on Youtube
Author by
Bazinga
Updated on September 18, 2022Comments
-
Bazinga over 1 year
In my form, I got a class named
Cform
which is subclassed to ConstanceFormCform(ConstanceForm)
In my views.py
class ResetCView(FormView): template_name = 'c.htm.jinja' form_class = Cform model = CModel def form_valid(self.form): form.cleaned['C_CODE'] = settings.C_CODE form.save() return HttpResponseRedirect(reverse('cview))
In my template:
<form method="post" action="{{url('c-reset')}}" name="form"> <button>Reset</button> </form> <form method="post" action="{{url('c-view')}}" name="form"> {{ form.as_p}} </form>
My problem is it is not updating. Form is always invalid. I just want to reset my form or its database value to a specific data.
-
durdenk about 8 yearsCan you post the form.errors. if its not valid then we should have this.
-
Sayse about 8 yearsForm valid is called after validation has been successful
-
Bazinga about 8 years@Sayse, yes Sir, But is there a way to just directly save it. Since my data is from a default value.
-