from django.db import models import datetime # Create your models here. class User(models.Model): name = models.CharField(max_length=50) def __unicode__(self): return self.name class Result(models.Model): user = models.ForeignKey(User) distance = models.DecimalField(max_digits=5,decimal_places=2) time = models.TimeField() date = models.DateField(default=datetime.date.today) class Meta: ordering = ["date"]