diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-11-10 07:29:10 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2020-11-10 07:29:10 +0100 | 
| commit | 93566f3d94d4c4b35329446f04d4960b7c8be01c (patch) | |
| tree | 524b3a7074422baba0802f8b062d237337ae0d04 /ishtar_common | |
| parent | 9ca7e4f667603e1f72611fe38b39488714dc455a (diff) | |
| download | Ishtar-93566f3d94d4c4b35329446f04d4960b7c8be01c.tar.bz2 Ishtar-93566f3d94d4c4b35329446f04d4960b7c8be01c.zip  | |
Remove unecessary HistoricalRecords for Address
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/models.py | 12 | 
1 files changed, 11 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index f4d898dc5..3e0d061e4 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -3657,6 +3657,17 @@ class DocumentTemplate(models.Model):                        slugify(self.name.replace(' ', '_').lower()) + u'-' + \                        datetime.date.today().strftime('%Y-%m-%d') + \                        "." + self.template.name.split('.')[-1] +        """ +        # to be tested +        filtr = self.get_filter( +            self.template, +            [r'{{ *([A-Za-z0-9_.]*)(\|[A-Za-z0-9_.-]*)* *}}', +             r'{% *for +[A-Za-z0-9_]+ +in +' +             r'([A-Za-z0-9_.]*)(\|[A-Za-z0-9_.-]*)* *%}', +             r'{% *if +([A-Za-z0-9_.]*)(\|[A-Za-z0-9_.-]*)* *%}', +             ] +        ) +        """          values = c_object.get_values()          engine = IshtarSecretaryRenderer()          try: @@ -4066,7 +4077,6 @@ class Address(BaseHistorizedItem):          _("Email"), max_length=300, blank=True, null=True)      alt_address_is_prefered = models.BooleanField(          _("Alternative address is prefered"), default=False) -    history = HistoricalRecords()      SUB_ADDRESSES = []      class Meta:  | 
