Guys, I'm just starting out with Django, so please bear with me.
I've got a suppliers database, with a unique REF for each supplier. I've also got a contracts database, also with a unique contract number. There's another model, which I state below.. the first two fields are to store the above two values, respectively. class ponum(models.Model): supplier = models.CharField(max_length=5) contract = models.CharField(max_length=5) user = models.CharField(max_length=40) Description = models.XMLField(max_length=200) pub_date = models.DateTimeField(auto_now_add=True, editable=False) def __unicode__(self): return self.contract How can I go about writing a form, that would provide a html dropdown box of REFs (from the suppliers db) to populate suppliers, and a html dropdown of contract_ids (from the contracts db) to populate the contracts box. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---