summaryrefslogtreecommitdiff
path: root/ishtar/furnitures/models.py
diff options
context:
space:
mode:
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: