Your Ad Here

Thursday, January 12, 2012

Re: how to change column name in many2many relations?

https://docs.djangoproject.com/en/1.3/topics/db/models/#verbose-field-names

set a readable name for column, or you want to refer other database table column ?

sorry, but i have the urge to ask. why we should do that?

thanks

On 12 January 2012 18:36, ?manu* <emanuele.paolini@gmail.com> wrote:
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.


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