ImageField | error

2016-05-30 Thread Erick Brockes
Folks, I'm using django 1.9. I'm having the following problem. When I update the object of Pessoa, described below, I receive the following error message: "i/o operation on closed file". Does anyone have any solution. Thanks. Erick models.py class Pessoa(models.Model): ...

Re: Django Template - problema

2014-05-31 Thread Erick Brockes
) >> >> by >> >> TIPO_CONJUGE = ( >> ('CA', _('Casados')), >> ('UE', _('Uniao estavel')), >> ('OU', _('Outros')), >> ) >> >> I'll see how to solve this issue. Any clues? >> >> >> 2014-05-31 0:11

UpdateView, ModelForm - form not redirecting problem

2014-05-31 Thread Erick Brockes
Hello, I have the following situation. If I don't refernce a ModelForm in my UpdateView class, the update process works correctly. When I reference the ModelForm in order to customize the fields, the form do not works correctly (do not redirect to the address specified). forms.py class

Re: Django Template - problema

2014-05-30 Thread Erick Brockes
to solve this issue. Any clues? 2014-05-31 0:11 GMT-03:00 Erick Brockes <ebroc...@gmail.com>: > Kevin, Thank you. > > If you don't mind, I'm kind of new in django. > > I've got the following response in the browser: > > {'tipo_conjuge': 0xb4dcb7ec>} > > Cou

Re: Django Template - problema

2014-05-30 Thread Erick Brockes
Kevin, Thank you. If you don't mind, I'm kind of new in django. I've got the following response in the browser: {'tipo_conjuge': } Could you help me out on how to proceed? 2014-05-30 18:45 GMT-03:00 Kelvin Wong : > In relacaoconjugetipouniao_form.html > > Add this

Fwd: Django Template - problema

2014-05-30 Thread Erick Brockes
I have the following problem. The field "tipo_conjuge" is not showing as I wanted. Could somebody tell me what is the problem? Best regards, Erick url. py ... url(r'relacao/(?P\d+)/$', login_required(CreateTipoRelacaoView.as_view()), name='cadastrarRelacaoTipo'), ... views.py ... class