Yes, because you will have to update age every time on person's birthday and if you forget to do it, you get the invalid data.
age = models.DateField() - Gennadiy <[email protected]> On Mon, Mar 14, 2011 at 3:19 PM, bruno desthuilliers < [email protected]> wrote: > On 14 mar, 04:20, django beginner <[email protected]> wrote: > > Main question already answered. As a side note: > > > Suppose I have this person model: > > > > class Person(models.Model): > > userid = models.AutoField(primary_key=True) > > fname = models.CharField(max_length=30) > > lname = models.CharField(max_length=30) > > age = models.IntegerField(max_length=2) > > > Storing the age of a person is _usually_ plain wrong - better to store > the birth date... > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

