I have
====
class User(models.Model):
Switch = models.ForeignKey(Switch, related_name='SwitchUsers')
Port = models.ForeignKey(Port)
class Switch(models.Model):
Name = models.CharField(max_length=50)
class Port(models.Model):
PortNum = models.PositiveIntegerField()
Switch = models.ForeignKey(Switch, related_name = "Ports")
====
I need when I create User or change User, and choose some Switch to
have Ports only related to that Switch in Option Box.
How can I acheave it?
Thank you.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
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.