Last change
on this file since 382 was 301, checked in by Rick van der Zwet, 14 years ago |
- Login/logout
- Revised admin form admin form
|
File size:
440 bytes
|
Rev | Line | |
---|
[291] | 1 | from django.db import models
|
---|
| 2 | import datetime
|
---|
| 3 |
|
---|
[301] | 4 | from django.contrib.auth.models import User
|
---|
| 5 |
|
---|
[291] | 6 | # Create your models here.
|
---|
[301] | 7 | class RunningUser(User):
|
---|
| 8 | class Meta:
|
---|
| 9 | proxy = True
|
---|
[291] | 10 |
|
---|
| 11 | class 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.