from django.db import models import datetime from django.contrib.auth.models import User # Create your models here. class RunningUser(User): class Meta: proxy = True class Result(models.Model): user = models.ForeignKey(User) distance = models.DecimalField(max_digits=5,decimal_places=2) time = models.TimeField(default='00:00:00') date = models.DateField(default=datetime.date.today) class Meta: ordering = ["date"]