summaryrefslogtreecommitdiff
path: root/ishtar/furnitures/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2010-12-28 18:53:43 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2010-12-28 19:13:18 +0100
commit537b4b443b5e9232a90b506c804c52ea0ed396ba (patch)
treed029ca34d5ec5c7bd95b1ee50898936d13f8cacb /ishtar/furnitures/models.py
parent93c4a26b633285c1e95de5ba304916870a17aa5c (diff)
downloadIshtar-537b4b443b5e9232a90b506c804c52ea0ed396ba.tar.bz2
Ishtar-537b4b443b5e9232a90b506c804c52ea0ed396ba.zip
First work on the wizard (refs #51)
Diffstat (limited to 'ishtar/furnitures/models.py')
-rw-r--r--ishtar/furnitures/models.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ishtar/furnitures/models.py b/ishtar/furnitures/models.py
index 008288eb9..ee488d52c 100644
--- a/ishtar/furnitures/models.py
+++ b/ishtar/furnitures/models.py
@@ -181,8 +181,10 @@ class File(BaseHistorizedItem, OwnPerms):
internal_reference = models.CharField(_(u"Internal reference"),
max_length=60)
file_type = models.ForeignKey(FileType, verbose_name=_(u"File type"))
+ in_charge = models.ForeignKey(Person, related_name='+',
+ verbose_name=_(u"Person in charge"))
general_contractor = models.ForeignKey(Organization, related_name='+',
- verbose_name=(u"General contractor"), blank=True, null=True)
+ verbose_name=_(u"General contractor"), blank=True, null=True)
is_active = models.BooleanField(_(u"Is active?"))
towns = models.ManyToManyField("Town")
creation_date = models.DateField(_(u"Creation date"),
@@ -234,7 +236,7 @@ class Operation(BaseHistorizedItem, OwnPerms):
code_patriarche = models.IntegerField(u"Code PATRIARCHE")
code_pat = models.CharField(u"Code PAT", max_length=10)
code_dracar = models.CharField(u"Code DRACAR", max_length=10)
- comment = models.TextField(_(u"Comment"))
+ comment = models.TextField(_(u"Comment"), null=True, blank=True)
history = HistoricalRecords()
class Meta: