Hi.
I've just started with Django and I'm liking it! A little confused
about one thing though...
I am experimenting with a basic ordering system, the model for which
look like this:
class stock_item(models.Model):
name = models.CharField(maxlength=200)
class order(models.Model):
ordered_by = models.CharField(maxlength=200)
class order_item(models.Model):
order = models.ForeignKey(order)
stock_item = models.ForeignKey(stock_item)
quantity = models.PositiveSmallIntegerField()
This is all fine until I get to a form for placing orders. I envisioned
a form something like this:
<ordered_by_field>
{repeat for each stock_item}
<stock_item_name><order_item_quantity_field>
{end}
But I'm having some trouble writing the view code for it, does anyone
have any pointers?
Thanks,
Stewart.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---