summaryrefslogtreecommitdiff
path: root/tbc/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/models.py')
-rw-r--r--tbc/models.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tbc/models.py b/tbc/models.py
index 4b474f2..ec4c35d 100644
--- a/tbc/models.py
+++ b/tbc/models.py
@@ -149,3 +149,17 @@ class SampleNotebook(models.Model):
def __unicode__(self):
notebook = self.proposal.accepted.title or 'notebook'
return '%s'%(notebook)
+
+
+class AicteBook(models.Model):
+ title = models.TextField()
+ author = models.CharField(max_length=300L)
+ category = models.CharField(max_length=32L)
+ publisher_place = models.CharField(max_length=200L)
+ isbn = models.CharField(max_length=50L)
+ edition = models.CharField(max_length=15L)
+ year_of_pub = models.CharField(max_length=4L)
+ proposed = models.BooleanField(default=False)
+ def __unicode__(self):
+ notebook = self.title or 'Book'
+ return '%s'%(notebook)