Ticket #15032: models.py

File models.py, 441 bytes (added by rene, 14 years ago)

Sample models.py file

Line 
1from django.contrib.auth.models import User
2class Employee(User):
3 accountview_code = models.CharField(max_length=255, blank=True, null=True, verbose_name="AccountView code", unique=True)
4
5class Project(models.Model):
6 name = models.CharField(max_lenght=255)
7 date = models.DateField()
8
9class WorkHour(models.Model):
10 project = models.ForeignKey(Project)
11 datum = models.DateField()
12 employee = models.ForeignKey(Employee)
Back to Top