Ticket #15032: models.py
File models.py, 441 bytes (added by , 14 years ago) |
---|
Line | |
---|---|
1 | from django.contrib.auth.models import User |
2 | class Employee(User): |
3 | accountview_code = models.CharField(max_length=255, blank=True, null=True, verbose_name="AccountView code", unique=True) |
4 | |
5 | class Project(models.Model): |
6 | name = models.CharField(max_lenght=255) |
7 | date = models.DateField() |
8 | |
9 | class WorkHour(models.Model): |
10 | project = models.ForeignKey(Project) |
11 | datum = models.DateField() |
12 | employee = models.ForeignKey(Employee) |