mybuddy/core/views.py

14 lines
340 B
Python
Raw Normal View History

2017-08-13 22:23:56 +00:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.urlresolvers import reverse_lazy
from django.views.generic.edit import FormView
from core.forms import BabyForm
class BabyFormView(FormView):
template_name = 'baby-form.html'
form_class = BabyForm
success_url = reverse_lazy('form_data_valid')