diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-21 16:45:01 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:23:17 +0100 |
commit | 0fa4634850a1891e5c42fb316d619d84a0649066 (patch) | |
tree | 440921733d43110c153fdde679654c51861dbe73 /ishtar_common/models.py | |
parent | 70db2bc451922d7744edb8b9b2c8534837863978 (diff) | |
download | Ishtar-0fa4634850a1891e5c42fb316d619d84a0649066.tar.bz2 Ishtar-0fa4634850a1891e5c42fb316d619d84a0649066.zip |
Admin - Custom fields: exports and imports CSV, json (refs #5406)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 81fc4c069..9c139086b 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -689,8 +689,8 @@ class JsonDataSection(models.Model): objects = JsonDataSectionManager() class Meta: - verbose_name = _("Json data - Menu") - verbose_name_plural = _("Json data - Menus") + verbose_name = _("Custom data - Menu") + verbose_name_plural = _("Custom data - Menus") ordering = ["order", "name"] unique_together = ("name", "content_type") @@ -743,7 +743,8 @@ class JsonDataField(models.Model): order = models.IntegerField(_("Order"), default=10) search_index = models.BooleanField(_("Use in search indexes"), default=False) section = models.ForeignKey( - JsonDataSection, blank=True, null=True, on_delete=models.SET_NULL + JsonDataSection, blank=True, null=True, on_delete=models.SET_NULL, + related_name="json_data_field", ) custom_forms = models.ManyToManyField( "CustomForm", blank=True, through="CustomFormJsonField" @@ -751,8 +752,8 @@ class JsonDataField(models.Model): objects = JsonDataFieldManager() class Meta: - verbose_name = _("Json data - Field") - verbose_name_plural = _("Json data - Fields") + verbose_name = _("Custom data - Field") + verbose_name_plural = _("Custom data - Fields") ordering = ["order", "name"] unique_together = ("content_type", "key") |