source: django_apps/running/models.py@ 366

Last change on this file since 366 was 301, checked in by Rick van der Zwet, 14 years ago
  • Login/logout
  • Revised admin form admin form
File size: 440 bytes
Line 
1from django.db import models
2import datetime
3
4from django.contrib.auth.models import User
5
6# Create your models here.
7class RunningUser(User):
8 class Meta:
9 proxy = True
10
11class Result(models.Model):
12 user = models.ForeignKey(User)
13 distance = models.DecimalField(max_digits=5,decimal_places=2)
14 time = models.TimeField(default='00:00:00')
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.