summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-12-20 19:42:56 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:20:59 +0100
commit1ad0312b086b0286b81322252991c855deca554e (patch)
tree93745734f124e3793a7a8a4fbc9845f05062f637 /ishtar_common/models.py
parent9a933515d0a263a077b96cf2a0517f6e6b2be314 (diff)
downloadIshtar-1ad0312b086b0286b81322252991c855deca554e.tar.bz2
Ishtar-1ad0312b086b0286b81322252991c855deca554e.zip
Syndication - filter field on sheet (bis)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 1f0fd6095..8f916538c 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -113,7 +113,6 @@ from ishtar_common.models_imports import (
TargetKeyGroup,
ValueFormater,
)
-from ishtar_common.models_rest import ApiUser, ApiSearchModel
from ishtar_common.utils import (
get_cache,
@@ -1721,24 +1720,6 @@ class CustomFormJsonField(models.Model):
)
-class SheetFilter(models.Model):
- key = models.CharField(_("Key"), max_length=200)
-
- class Meta:
- abstract = True
-
- def get_template(self):
- raise NotImplemented()
-
- def get_keys(self):
- tpl = os.path.abspath(
- os.path.join(settings.ROOT_PATH, "..", self.get_template())
- )
- r = re.compile("item\.([_a-zA-Z])+")
- with open(tpl, "r") as fle:
- return list(set(r.findall(fle.read())))
-
-
class GlobalVar(models.Model, Cached):
slug = models.SlugField(_("Variable name"), unique=True)
description = models.TextField(