Re: Model fields and arrays?

2008-12-31 Thread Greg Schwimer
On Wed, Dec 31, 2008 at 6:02 AM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > > > > On 31 déc, 05:40, schwim wrote: > > I'm trying to build a model that will store the counts of each of 10 > > possible choices, e.g.: > > > > v1 = models.IntegerField(default=0) > > v2 = mo

Re: Model fields and arrays?

2008-12-31 Thread Daniel Roseman
On Dec 30, 11:40 pm, schwim wrote: > I'm trying to build a model that will store the counts of each of 10 > possible choices, e.g.: > >     v1 = models.IntegerField(default=0) >     v2 = models.IntegerField(default=0) >     v3 = models.IntegerField(default=0) >     ... >     v10 = models.IntegerF

Re: Model fields and arrays?

2008-12-31 Thread bruno desthuilliers
On 31 déc, 05:40, schwim wrote: > I'm trying to build a model that will store the counts of each of 10 > possible choices, e.g.: > > v1 = models.IntegerField(default=0) > v2 = models.IntegerField(default=0) > v3 = models.IntegerField(default=0) > ... > v10 = models.IntegerFi

Re: Model fields and arrays?

2008-12-31 Thread raj
I too checking for similar thing. Need to store a list of integers/ floats in the model. When we find existing form fields as inadequate, we can define our own fields. What about following the same way here for model fields too? On Dec 31, 9:40 am, schwim wrote: > I'm trying to build a model tha

Model fields and arrays?

2008-12-30 Thread schwim
I'm trying to build a model that will store the counts of each of 10 possible choices, e.g.: v1 = models.IntegerField(default=0) v2 = models.IntegerField(default=0) v3 = models.IntegerField(default=0) ... v10 = models.IntegerField(default=0) I'd prefer to represent this as an