Skip to content

Commit

Permalink
Merge pull request #31 from jasvir99/dirty
Browse files Browse the repository at this point in the history
Adding models in suspense app
  • Loading branch information
piyushparkash committed Jul 9, 2014
2 parents da7bf29 + f6e46bf commit 2b3719e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Empty file.
19 changes: 19 additions & 0 deletions src/librehatti/suspense/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,22 @@ class SuspenseClearance(models.Model):
field_testing_staff = models.CharField(max_length=200)
Test_date = models.DateTimeField(auto_now_add=True)
Clear_date = models.DateTimeField(auto_now_add=True)

class Department(models.Model):
title = models.CharField(max_length=50)
address = models.CharField(max_length=150)
phone = models.CharField(max_length=20, blank=True)
dean = models.CharField(max_length=50, blank=True)
def __unicode__(self):
return self.title

class Staff(models.Model):
department = models.ForeignKey(Department)
code = models.CharField(max_length=5)
name = models.CharField(max_length=50)
daily_income = models.IntegerField(blank=True)
position = models.CharField(max_length=100)
lab = models.ForeignKey(Lab)
email =models.EmailField(blank=True)
def __unicode__(self):
return self.name

0 comments on commit 2b3719e

Please sign in to comment.