I have this model (bits omitted for brevity): class Photograph(ImageModel): title = models.CharField(_('title'), max_length=100, unique=True )
class Lightbox(models.Model): photographs = models.ManyToManyField('Photograph', related_name='lightboxes', through = 'LightboxPhotograph', symmetrical=False, verbose_name=_('photographs'), null=True, blank=True) class LightboxPhotograph(models.Model): lightbox = models.ForeignKey( Lightbox ) photograph = models.ForeignKey( Photograph ) order = models.IntegerField( unique=False ) how do iterate the LightboxPhotograph objects for a given instance of LightBox? e.g. for x in lightbox.iterable_LightboxPhotograph_objects such that: type(x) == LightboxPhotograph --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---