source: django_apps/running/models.py@ 307

Last change on this file since 307 was 301, checked in by Rick van der Zwet, 14 years ago
  • Login/logout
  • Revised admin form admin form
File size: 440 bytes
RevLine 
[291]1from django.db import models
2import datetime
3
[301]4from django.contrib.auth.models import User
5
[291]6# Create your models here.
[301]7class RunningUser(User):
8 class Meta:
9 proxy = True
[291]10
11class Result(models.Model):
12 user = models.ForeignKey(User)
13 distance = models.DecimalField(max_digits=5,decimal_places=2)
[301]14 time = models.TimeField(default='00:00:00')
[291]15 date = models.DateField(default=datetime.date.today)
16
17 class Meta:
18 ordering = ["date"]
Note: See TracBrowser for help on using the repository browser.