Re: ManyToManyField to Phones model for enter phones manually (not select from list)
On 9/22/2010 4:30 PM, Anton Danilchenko wrote:
> Ihave found solution.
>
> I have changed only Form class:
>
> 1) added field for show text input field
> phones = forms.CharField()
>
> 2) I have create in my Form instance method clear_phones() where I
> check phones and save it all to database and get Phone model ids for
> this phone numbers. And return this ids
>
> All work well. Simple solution for this task. Thank you for help!
>
Most of the help seems to have been self-provided, so well done!
regards
Steve
--
DjangoCon US 2010 September 7-9 http://djangocon.us/
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home