summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-07-04 16:11:34 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-07-04 22:34:41 +0200
commit3c978a2d8a65ec06f6f0ccb910ca32d53cf5a8c2 (patch)
tree423c5e22b1aea6c68bbbdc6e1aaeb694fc47d039 /ishtar_common/models.py
parent7076c0aa5fdbeeac32620b2cb354bc7c0a94c29e (diff)
downloadIshtar-3c978a2d8a65ec06f6f0ccb910ca32d53cf5a8c2.tar.bz2
Ishtar-3c978a2d8a65ec06f6f0ccb910ca32d53cf5a8c2.zip
Graphs: save results, options and tests
- can generate only above and only bellow - save dot files - option for no color for current - tests
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 5e7f6e9b3..e8b6fc518 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -1205,6 +1205,38 @@ class RelationItem(models.Model):
_("Generated relation image (SVG)"), null=True, blank=True,
upload_to=get_image_path, help_text=max_size_help()
)
+ relation_bitmap_image = models.FileField(
+ _("Generated relation image (PNG)"), null=True, blank=True,
+ upload_to=get_image_path, help_text=max_size_help()
+ )
+ relation_dot = models.FileField(
+ _("Generated relation image (DOT)"), null=True, blank=True,
+ upload_to=get_image_path, help_text=max_size_help()
+ )
+ relation_image_above = models.FileField(
+ _("Generated above relation image (SVG)"), null=True, blank=True,
+ upload_to=get_image_path, help_text=max_size_help()
+ )
+ relation_dot_above = models.FileField(
+ _("Generated above relation image (DOT)"), null=True, blank=True,
+ upload_to=get_image_path, help_text=max_size_help()
+ )
+ relation_bitmap_image_above = models.FileField(
+ _("Generated above relation image (PNG)"), null=True, blank=True,
+ upload_to=get_image_path, help_text=max_size_help()
+ )
+ relation_image_bellow = models.FileField(
+ _("Generated bellow relation image (SVG)"), null=True, blank=True,
+ upload_to=get_image_path, help_text=max_size_help()
+ )
+ relation_dot_bellow = models.FileField(
+ _("Generated bellow relation image (DOT)"), null=True, blank=True,
+ upload_to=get_image_path, help_text=max_size_help()
+ )
+ relation_bitmap_image_bellow = models.FileField(
+ _("Generated bellow relation image (PNG)"), null=True, blank=True,
+ upload_to=get_image_path, help_text=max_size_help()
+ )
class Meta:
abstract = True