Re: How to do something just like in user right assignment ?

2011-09-30 Thread bino oetomo
Dear Sébastien Thankyou for your enlightment I really appreciate it Sincerely -bino- On 09/30/2011 03:34 PM, BILLION Sébastien wrote: Hi, You must add a ManyToManyField in your models https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField ... -- You

Re: How to do something just like in user right assignment ?

2011-09-30 Thread BILLION Sébastien
Hi, You must add a ManyToManyField in your models https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyField class Person(models.Model): name = models.Charfield(max_lenght=200) colours = models.ManyToManyField(Color) class Color(models.Model): name =

How to do something just like in user right assignment ?

2011-09-29 Thread bino oetomo
Dear All .. Let's say I have 2 model in manyTOmany relation, i.e : Persons and colours I want a 2 CRUD interface for this , that is : 1. Persons : where I can add colours to each person, and 2. Colours : where I can add Persons to each colour I also want the "ADD" methode (Add colours to