Re: Models and select

2009-03-17 Thread Alex Gaynor
On Tue, Mar 17, 2009 at 5:13 PM, Juan Hernandez wrote: > Hi there: > > I have this model for example > > class Categories(models.Model): > name = models.CharField(max_length=30) > > which holds this data on the DB > > ++--+ > | id | name | >

Models and select

2009-03-17 Thread Juan Hernandez
Hi there: I have this model for example class Categories(models.Model): name = models.CharField(max_length=30) which holds this data on the DB ++--+ | id | name | ++--+ | 1 | Musica | | 2 | Programacion | | 3 | Libros | | 4 | Politica