summaryrefslogtreecommitdiff
path: root/chimere/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/models.py')
-rw-r--r--chimere/models.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/chimere/models.py b/chimere/models.py
index c96fa96..8297664 100644
--- a/chimere/models.py
+++ b/chimere/models.py
@@ -817,11 +817,14 @@ class Area(models.Model, SimpleArea):
layers = SelectMultipleField(Layer, related_name='areas',
through='AreaLayers', blank=True)
default_subcategories = SelectMultipleField(SubCategory, blank=True,
- verbose_name=_(u"Categories checked by default"))
+ verbose_name=_(u"Themes checked by default"))
+ dynamic_categories = models.NullBooleanField(_(u"Themes dynamicaly displayed"),
+ help_text=_(u"If checked, themes are only displayed in the menu if they"
+ u" are available on the current extent."))
subcategories = SelectMultipleField(SubCategory, related_name='areas',
blank=True, db_table='chimere_subcategory_areas',
- verbose_name=_(u"Restricted to theses subcategories"),
- help_text=_(u"If no subcategory is set all subcategories are available"))
+ verbose_name=_(u"Restricted to theses subthemes"),
+ help_text=_(u"If no subtheme is set all subthemes are available"))
external_css = models.URLField(_(u"Link to an external CSS"), blank=True,
null=True)
restrict_to_extent = models.BooleanField(_(u"Restrict to the area extent"),