Nobody can help me with this?
On Aug 15, 10:14 am, Gee <gee.webm...@gmail.com> wrote: > Hi, > > I am trying to build aformwizardthat includes a manytomany > relationship on one of the steps and I am stuck on to implement the > manytomany. The models are, (only for step in question) > > class Person(models.Model): > name = models.CharField > addr = models.ManyToMany(Phone) > > class Phone(models.Model): > PHONE_CHOICES(('H','Home'),('W",'Work'),('M','Mobile')) > phone= models.CharField(max_length=10) > phoneType = models.CharField(max_length=1, choices=PHONE_CHOICES) > > The models are setup this way on the premise that more than one person > could have any number of the same phone numbers. > > What I need to do is have a select box on the form that shows the > phone choices and when one is selected an option to add a new line to > the form that to retain that phone information for that type. > > Any help would be greatly appreciated. > > Thanks > Andrew --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---