Hello, I have this in my models.py :
class Device(models.Model): name = models.CharField(max_length=30) class DeviceProperty(models.Model): key = models.CharField(max_length=30) value = models.CharField(max_length=80) device = models.ForeignKey(Device) In my views.py, I'm doing : deviceList = Device.objects.all() and put this list to the response In my template, I'm currently displaying the items like this : {% for device in deviceList %} {{ device.name }} ... {% endfor %} My question is : how can I also display items from my DeviceProperty class ? Like it is described in the model, I have a list of DeviceProperty for each Device. So inside of my "for" loop, I'd like to display the associated DeviceProperty items. Any idea ? Thanks. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---