Hi everyone,
I have this problem:

this is my models.py

...

class Model1(models.Model):
   description = models.CharField(max_length=150)

class Model2(models.Model):
   name = models.CharField(max_length=150)
   model1 = models.ForeignKey(Model1)

class Model3(models.Model):
   model1 = models.ForeignKey(Model1)
   model2 = models.ForeignKey(Model2)
   description = models.CharField(max_length=150)
....

What I need is that in the Admin area, adding a new Model3 element ,
when I select the model1 from the select widget,  it updates
automatically  the model2 select widget showing only the elements that
have the same model1.

Which is the best way to do it?

Thanks so much.

Marco

-- 
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.

Reply via email to