Hi evebody,

I'm using formset with inline and I can create the object in CreateView, 
but in UpdateView I get this error:

Erro:

ValidationError at /cadastros/pacientes/atualizar/7/
["'' value must be integer."]

django/db/models/fields/__init__.py in to_python:

Variable  | value
self        <django.db.models.fields.AutoField: id>
value       ''

-----------------------

I think the ID (main form) don't are passing through inline.

-----------------------
My codings:
-----------------------

View:

http://pastebin.com/KPG8SJF5

Forms.py:

TelefonePessoaFormSet = inlineformset_factory(Paciente, TelefonePessoa, 
fields=('tipo', 'numero',), extra=2, can_delete=True)

Thank's for all.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@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/5556c40b-63d5-4c9b-ac67-5edd327c0963%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to