Re: modeling questions

2008-12-05 Thread Karen Tracey
On Fri, Dec 5, 2008 at 3:38 AM, Margie <[EMAIL PROTECTED]> wrote: > > Am trying to get the hang of specifying my models, so bear with me ... > > Suppose that I want to reprsent states and the cities that are in > them. I think I would have a model that looks like this: > > class State(models.Mode

modeling questions

2008-12-05 Thread Margie
Am trying to get the hang of specifying my models, so bear with me ... Suppose that I want to reprsent states and the cities that are in them. I think I would have a model that looks like this: class State(models.Model): name = models.CharField('name', max_length=20) class City(models.Mode