Russel: Thanks for your attention. I send you an example Assuming the model: class Tab1(models.Model): data1 = models.CharField(maxlength=10) data2 = models.CharField(maxlength=50) data3 = models.BooleanField(default=False) data4 = models.ManyToManyField('self', null=True, blank=True, filter_interface=models.HORIZONTAL, related_name='docrel', limit_choices_to={'data3__exact': True})
After filling data, I have next result: -------------------------------------------------------------------------- Data1 Data2 Data3 Data4 -------------------------------------------------------------------------- Boss Maria X Fredo, Pepe, Sue Boss Jose X Anthony, Carla Boss David X Robert,Mike Employee Fredo Maria Employee Pepe Maria Employee Carla Jose Employee Anthony Jose Employee Sue Maria Employee Robert David Employee Mike David But some steps before, Assuming I created the first five records only, screen for creation of Carla will show: Data2 ->: Carla Data4 ->:Choice Maria, Jose or David (only 3 are shown in data4 because of the Data3 field condition where X is true) After completion of data fill, If for example, instead of Fredo, I change to Frido, the final result will be: ---------------------------------------------------------------------- Data1 Data2 Data3 Data4 ---------------------------------------------------------------------- Boss Maria X Pepe, Sue Boss Jose X Anthony, Carla Boss David X Robert,Mike Employee Frido Employee Pepe Maria Employee Carla Jose Employee Anthony Jose Employee Sue Maria Employee Robert David Employee Mike David The relation of Frido to Maria and Maria to Frido (symmetrical=True by default) dissapeared!! It is important to say that Data2 is not primary key. That is my problem. Very, very best regards --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---