diff options
Diffstat (limited to 'archaeological_operations/models.py')
| -rw-r--r-- | archaeological_operations/models.py | 12 | 
1 files changed, 8 insertions, 4 deletions
| diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index c690e5b3a..b2d7740a1 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -356,8 +356,10 @@ class ArchaeologicalSite(DocumentItem, BaseHistorizedItem, CompleteIdentifierIte          Document, related_name='main_image_sites',          on_delete=models.SET_NULL,          verbose_name=_("Main image"), blank=True, null=True) -    cached_label = models.TextField(_("Cached name"), -                                    null=True, blank=True, db_index=True) +    cached_label = models.TextField( +        _("Cached name"), null=True, blank=True, db_index=True, +        help_text=_("Generated automatically - do not edit") +    )      cached_towns_label = models.TextField(          _("Cached town label"), blank=True, null=True,          help_text=_("Generated automatically - do not edit") @@ -1137,8 +1139,10 @@ class Operation(ClosedItem, DocumentItem, BaseHistorizedItem,          Document, related_name='main_image_operations',          on_delete=models.SET_NULL,          verbose_name=_("Main image"), blank=True, null=True) -    cached_label = models.CharField(_("Cached name"), max_length=500, -                                    null=True, blank=True, db_index=True) +    cached_label = models.CharField( +        _("Cached name"), max_length=500, +        help_text=_( "Generated automatically - do not edit"), +        null=True, blank=True, db_index=True)      archaeological_sites = models.ManyToManyField(          ArchaeologicalSite, verbose_name=_("Archaeological sites"),          blank=True, related_name='operations') | 
