diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-17 17:50:44 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-17 17:50:44 +0100 | 
| commit | 986725aacb88131471ffe61a3a2e32c57408a05b (patch) | |
| tree | 7cd4be16f875a502231efa949b77d2e7db12d8c0 /ishtar_common/models.py | |
| parent | 373a9d9531f2cb7ef954f7af14baaea33b74bdff (diff) | |
| download | Ishtar-986725aacb88131471ffe61a3a2e32c57408a05b.tar.bz2 Ishtar-986725aacb88131471ffe61a3a2e32c57408a05b.zip | |
Custom forms: exclude field model
Diffstat (limited to 'ishtar_common/models.py')
| -rw-r--r-- | ishtar_common/models.py | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 1562280ef..a5a3d96c1 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1648,6 +1648,15 @@ class CustomForm(models.Model):          ordering = ['name', 'form'] +class ExcludedField(models.Model): +    custom_form = models.ForeignKey(CustomForm, related_name='excluded_fields') +    field = models.CharField(_(u"Field"), max_length=250) + +    class Meta: +        verbose_name = _(u"Custom form - excluded field") +        verbose_name_plural = _(u"Custom form - excluded fields") + +  class GlobalVar(models.Model, Cached):      slug = models.SlugField(_(u"Variable name"), unique=True)      description = models.TextField(_(u"Description of the variable"), | 
