summaryrefslogtreecommitdiff
path: root/archaeological_finds/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-07-01 12:21:07 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-07-01 12:21:07 +0200
commit702a86149aea69ab4c7628e0f51144e38404771d (patch)
treeadc16794a6ffd669e3ea5922a8979269858d46de /archaeological_finds/models.py
parentb3784993efd45985fe78664ac31df72710aedc25 (diff)
downloadIshtar-702a86149aea69ab4c7628e0f51144e38404771d.tar.bz2
Ishtar-702a86149aea69ab4c7628e0f51144e38404771d.zip
Treatments: manage conditional forms
Diffstat (limited to 'archaeological_finds/models.py')
-rw-r--r--archaeological_finds/models.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py
index 65d30f37a..f6483e989 100644
--- a/archaeological_finds/models.py
+++ b/archaeological_finds/models.py
@@ -613,10 +613,16 @@ class FindSource(Source):
class TreatmentType(GeneralType):
virtual = models.BooleanField(_(u"Virtual"))
- upstream_is_many = models.BooleanField(_(u"Upstream is many"),
- default=False)
- downstream_is_many = models.BooleanField(_(u"Downstream is many"),
- default=False)
+ upstream_is_many = models.BooleanField(
+ _(u"Upstream is many"), default=False,
+ help_text=_(
+ u"Check this if for this treatment from many finds you'll get "
+ u"one."))
+ downstream_is_many = models.BooleanField(
+ _(u"Downstream is many"), default=False,
+ help_text=_(
+ u"Check this if for this treatment from one find you'll get "
+ u"many."))
class Meta:
verbose_name = _(u"Treatment type")
@@ -633,8 +639,11 @@ class Treatment(BaseHistorizedItem, OwnPerms):
comment = models.TextField(_(u"Comment"), blank=True, null=True)
treatment_type = models.ForeignKey(TreatmentType,
verbose_name=_(u"Treatment type"))
- location = models.ForeignKey(Warehouse, verbose_name=_(u"Location"),
- blank=True, null=True)
+ location = models.ForeignKey(
+ Warehouse, verbose_name=_(u"Location"), blank=True, null=True,
+ help_text=_(
+ u"Location where the treatment is done. Target warehouse for "
+ u"a move."))
other_location = models.CharField(_(u"Other location"), max_length=200,
blank=True, null=True)
person = models.ForeignKey(