Have you considered using a related model to store all your floats? Then you could use a tabular inline in teh admin.
On Jul 16, 2:28 pm, hcsturix74 <hcsturi...@gmail.com> wrote: > Hi all, > I am creating a model in django containing some (i.e. 100 ) float > values such as: > > class DataMeasure(models.Model): > measure_name = models.CharField(max_length=50, verbose_name= > (u'name')) > measure_type = models.CharField(max_length=50, verbose_name= > (u'type')) > val_1 = models.FloatField(default=0, > verbose_name=(u'measure_1')) > val_2 = models.FloatField(default=null, > verbose_name=(u'measure_2')) > val_3 = models.FloatField(default=null, > verbose_name=(u'measure_3')) > val_4 = models.FloatField(default=null, > verbose_name=(u'measure_4')) > .... > val_100 = models.FloatField(default=null, > verbose_name=(u'measure_100')) > > My problem is that I have to display 100 values in admin and I would > like to do it in table format in order to make it in a "human readable/ > writable" way. This should be together with all other fields of the > model. > What do you suggest? Is there a standard way to do it? > Django documentation work with this kind of things as Forms...but > Maybe I missed something. > Shall I use a ModelForm? > And if Yes, how can I display it in admin interface accordingly? > > thanks in advance, > hcsturix74 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---