Re: how to change column name in many2many relations?

2012-01-12 Thread Weldan
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*  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*"  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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: how to change column name in many2many relations?

2012-01-12 Thread ?manu*
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*"  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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



how to change column name in many2many relations?

2012-01-12 Thread ?manu*
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.