Ejemplo n.º 1
0
    def create_from_form(cls, form):
        from people.helpers import update_person_from_form

        person = Person.objects.create(name=form.cleaned_data["name"])

        update_person_from_form(person, form)
        return person
Ejemplo n.º 2
0
    def update_from_form(self, form):
        from people.helpers import update_person_from_form

        update_person_from_form(self, form)