Your Ad Here

Thursday, January 12, 2012

Re: how to change column name in many2many relations?

I have solved by defining the model of the relation with a "through"
attribute. A little lenghty but effective...

E.

On Jan 12, 11:01 am, "?manu*" <emanuele.paol...@gmail.com> wrote:
> Is it possible to change the column name in many2many relations?
>
> I can change in in foreignKeys with the db_column attribute. I can
> change the table name in many2many relations with db_table. What about
> column names in many2many relations?
>
> Thanks,
> E.

--
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