Re: Model with a foreign key and a percentage

2008-09-26 Thread Fabio Natali
bruno desthuilliers scrisse: [...] > # > http://docs.djangoproject.com/en/dev/topics/db/models/#intermediary-manytomany That seems exactly what I was looking for! I'll use it in my app, using your code as a starting point. Thank you very much, Fabio. -- Fabio Natali --~--~-~--~--

Re: Model with a foreign key and a percentage

2008-09-26 Thread bruno desthuilliers
On 26 sep, 12:02, Fabio Natali <[EMAIL PROTECTED]> wrote: > Hi everybody. > > my django website has to deal with a set of workers, each of them > earning a given amount of money for their own work. > > So I have: > > class Worker(models.Model): > name = models.CharField(max_length=30) > ho

Model with a foreign key and a percentage

2008-09-26 Thread Fabio Natali
Hi everybody. my django website has to deal with a set of workers, each of them earning a given amount of money for their own work. So I have: class Worker(models.Model): name = models.CharField(max_length=30) hourly_wage = models.DecimalField(max_digits=10, decimal_places=2) A part fr