turn HttpResponseRedirect(url_for("job:success")
>
>
>
> 2017-03-09 16:20 GMT+01:00 jthewriter >:
>
> > Yeah, that's actually what I was doing before, but as far as I can tell
> > formtools prevents that possibility. Do you know of some way to creat
;
> If you want to create a Job object and save it to database, I highly
> recommend the CreateView
>
>
> https://docs.djangoproject.com/en/1.10/ref/class-based-views/generic-editing/#django.views.generic.edit.CreateView
>
>
> 2017-03-09 2:17 GMT+01:00 jthewriter >:
>
Probably a simple question but having trouble implementing a form preview
page using django-formtools. I've configured everything per the docs. I'm
stuck on what to add to the done() method to save the data to db.
forms.py
class JobForm(ModelForm):
class Meta:
model = Job
3 matches
Mail list logo