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.

Share:
48

Related videos on Youtube

Bazinga
Author by

Bazinga

Updated on September 18, 2022

Comments

  • Bazinga
    Bazinga over 1 year

    In my form, I got a class named Cform which is subclassed to ConstanceForm Cform(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
      durdenk about 8 years
      Can you post the form.errors. if its not valid then we should have this.
    • Sayse
      Sayse about 8 years
      Form valid is called after validation has been successful
    • Bazinga
      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.