Calculate availability based on Events

2013-01-21 Thread Tijmen
Hi, I would like to calculate the availability of a service which holds zero or more events. The model looks like this: class Service(models.Model): name = models.CharField(max_length=75) class Event(models.Model): event_class = models.CharField(max_length=75) service = models.Forei

Re: Baseball statistics

2010-01-03 Thread Tijmen
Thanks alot! This was really helpful, and yes you're right, the g field is redundant. Thanks again! On Jan 3, 6:36 pm, greatlemer wrote: > On Jan 3, 2:36 pm, Tijmen wrote: > > > > > Hi there, > > > First of all let me say I'm just starting here but n

Baseball statistics

2010-01-03 Thread Tijmen
c - season A game is played with several players, each player has statistics for this game and a game is part of a season. Now I'm a bit lost in what kind of relationship I should use. models.ManyToManyField or models.ForeignKey... And where I should put the statement. Any help would be grea