diff options
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:  | 
