source: django_apps/running/models.py@ 294

Last change on this file since 294 was 291, checked in by Rick van der Zwet, 14 years ago

Project import and intial application 'running' import, which combines django with protovis.

File size: 434 bytes
Line 
1from django.db import models
2import datetime
3
4# Create your models here.
5class User(models.Model):
6 name = models.CharField(max_length=50)
7 def __unicode__(self):
8 return self.name
9
10class Result(models.Model):
11 user = models.ForeignKey(User)
12 distance = models.DecimalField(max_digits=5,decimal_places=2)
13 time = models.TimeField()
14 date = models.DateField(default=datetime.date.today)
15
16 class Meta:
17 ordering = ["date"]
Note: See TracBrowser for help on using the repository browser.