Re: Displaying items of a linked object in a template

2008-12-02 Thread Marco
@Daniel and Bruno, Thanks a lot it is working ! --~--~-~--~~~---~--~~ 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

Re: Displaying items of a linked object in a template

2008-12-01 Thread bruno desthuilliers
On 1 déc, 14:20, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Dec 1, 12:15 pm, Marco <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > I have this in my models.py : > > > class Device(models.Model): > > name = models.CharField(max_length=30) > > > class DeviceProperty(models.Model): > >

Re: Displaying items of a linked object in a template

2008-12-01 Thread Daniel Roseman
On Dec 1, 12:15 pm, Marco <[EMAIL PROTECTED]> wrote: > 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 =

Displaying items of a linked object in a template

2008-12-01 Thread Marco
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