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