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
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
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
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
4 matches
Mail list logo