My advice is to use custom model form and hide these M2M fields if you are
creating a new object.
You can overwrite the init method of the form to do this.
On Mon, Sep 12, 2011 at 6:01 PM, Carlos Brum wrote:
> Hello guys,
>
> I have a problem to deal with a field ManyToMany in Django. It is
> th
Hello guys,
I have a problem to deal with a field ManyToMany in Django. It is
the following:
When I try to access a list of relations that is my ManyToMany field
I get an error
"%ModelName% instance needs to have a primary key value before a many-
to-many relationship Can be used. "
I need to p
2 matches
Mail list logo