class NewProfissoesPessoaView (LoginRequiredMixin, LayoutMixin, extra_views.NamedFormsetsMixin, extra_views.CreateWithInlinesView): title = "New Job" model = ProfissoesPessoa
print ( 'come on line 334')
layout = Layout ( Row ( 'person', 'profession', 'rating'), # Fieldset ( 'Address' # Row (Span7 ( 'address'), Span5 ( 'zipcode')) # Row (Span5 ( 'city'), Span2 ( 'state'), Span5 ( 'country'))) Inline ( 'Qualifications Profession', ItemInline) )
def form_valid (self, form): print ( 'come on line 343') profession = self.object.save (commit = False) profissao.pessoa = request.user profissao.save ()
def get_success_url (self): return self.object.get_absolute_url ()
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d5d3b9d5-dba6-4361-999c-e0467ad69a3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.