Re: Selecting multiple models in the UI, each needs to have unique "order"

2009-10-20 Thread Bogdan I. Bursuc
chefsmart wrote: > Yes, I overlooked the M2M relation in my rush. Thanks for pointing > that out. > > I would use your model representations as is, except that the order > field in the intermediary model ProcessPhase would be > > order = models.PositiveIntegerField(unique=True) > > instead of > >

Re: Selecting multiple models in the UI, each needs to have unique "order"

2009-10-20 Thread chefsmart
Yes, I overlooked the M2M relation in my rush. Thanks for pointing that out. I would use your model representations as is, except that the order field in the intermediary model ProcessPhase would be order = models.PositiveIntegerField(unique=True) instead of order = models.PositiveIntegerField

Re: Selecting multiple models in the UI, each needs to have unique "order"

2009-10-20 Thread Bogdan I. Bursuc
chefsmart wrote: > I have a particular scenario that I can't seem to figure out how to > accomplish in Django. > > I have the following models: - > > class Process(models.Model): > name = models.CharField(max_length=50) > is_active = models.BooleanField(db_index=True) > > class Phase(model

Selecting multiple models in the UI, each needs to have unique "order"

2009-10-20 Thread chefsmart
I have a particular scenario that I can't seem to figure out how to accomplish in Django. I have the following models: - class Process(models.Model): name = models.CharField(max_length=50) is_active = models.BooleanField(db_index=True) class Phase(models.Model): name = models.CharFi