Re: Is possible to have ManyToMany relation....

2006-07-25 Thread PythonistL
Aidas, Thank you for your help. I checked http://www.djangoproject.com/documentation/models/m2m_and_m2o/ but I can not find if it works with 0.91 version, that I use. Do you know that? Thank you for the reply L, --~--~-~--~~~---~--~~ You received this message

Re: Is possible to have ManyToMany relation....

2006-07-25 Thread Aidas Bendoraitis
Yes, it is possible, but you will have to add related_name to each of the relationships to the same table. See here: http://www.djangoproject.com/documentation/models/m2m_and_m2o/ Also I would suggest you to rename "created" to "creator" and "access" to "accessors", although it is not a big

Is possible to have ManyToMany relation....

2006-07-25 Thread PythonistL
Is possible to have ManyToMany and OneToMany relation like this? class User(meta.Model): Login=meta.CharField(maxlength=50,unique=True) Email=meta.EmailField(_('e-mail address'),blank=True) class Gallery(meta.Model): Title = meta.CharField(_("title"), maxlength=80) created