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 <gennad.zlo...@gmail.com>


On Mon, Mar 14, 2011 at 3:19 PM, bruno desthuilliers <
bruno.desthuilli...@gmail.com> wrote:

> On 14 mar, 04:20, django beginner <djangop...@gmail.com> 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 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.
>
>

-- 
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.

Reply via email to