Re: is my UserProfile ManyToMany wrong?

2012-02-12 Thread richard
Thanks Patrick and Daniel i got it working with adding the unicode method. much appreciated. On Feb 12, 3:49 pm, Patrick Wellever wrote: > Hi, > > Is that code all that's in your model classes, or just an excerpt? If you > don't already have a __unicode__() method defined

Re: is my UserProfile ManyToMany wrong?

2012-02-12 Thread Daniel Roseman
On Sunday, 12 February 2012 11:06:32 UTC, richard wrote: > > Hi im having difficulty looping over my mantomany in my template. A > user has a 1to1 with UserProfile and the UserProfile has a manytomany > with interests. But displaying the form field without looping over it > displays a model

Re: is my UserProfile ManyToMany wrong?

2012-02-12 Thread Patrick Wellever
Hi, Is that code all that's in your model classes, or just an excerpt? If you don't already have a __unicode__() method defined on your model, I think that would cause the problem you are referring to. That method would be called by Django in various places, wherever it needs to represent a model

is my UserProfile ManyToMany wrong?

2012-02-12 Thread richard
Hi im having difficulty looping over my mantomany in my template. A user has a 1to1 with UserProfile and the UserProfile has a manytomany with interests. But displaying the form field without looping over it displays a model multiple select with just a list of object result sets. displaying