Hi, in the model I've got:

class Client(models.Model):
   name = models.CharField(maxlength=200)

class Workorder(models.Model):
   client = models.ForeignKey(Client)
   name = models.CharField(maxlength=200)

As for input I'm using generic views (create_update.create_object,..).
How can I get an selection widget in the form for Workorders with a list
of clients? Is there an automatic way to do it (like in the admin panel)?

Przemek
-- 
AIKIDO TANREN DOJO  -   Poland - Warsaw - Mokotow - Ursynow - Natolin
info: http://www.tanren.pl/ phone: +48501516666 email: [EMAIL PROTECTED]

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

Reply via email to