Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

remove colorhash (this will be done client side)

jonaswinkler95fe803bf648
diff --git a/Pipfile b/Pipfile
index 0e72eb1c0..29a91ece3 100644
--- a/Pipfile
+++ b/Pipfile
@@ -55,7 +55,6 @@ uvloop = "~=0.14.0"
# TODO: keep an eye on piwheel builds and update this once available (https://www.piwheels.org/project/cryptography/)
cryptography = "~=3.3.2"
"pdfminer.six" = "*"
-colorhash = "*"
[dev-packages]
coveralls = "*"
diff --git a/src/documents/models.py b/src/documents/models.py
index 9c5b14806..abbcc124e 100755
--- a/src/documents/models.py
+++ b/src/documents/models.py
@@ -8,7 +8,6 @@ from collections import OrderedDict
import pathvalidate
import dateutil.parser
-from colorhash import ColorHash
from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
@@ -93,15 +92,6 @@ class Tag(MatchingModel):
verbose_name = _("tag")
verbose_name_plural = _("tags")
- def save(self, *args, **kwargs):
- if self.colour == "":
- self.colour = ColorHash(
- self.name,
- lightness=(0.35, 0.45, 0.55, 0.65),
- saturation=(0.2, 0.3, 0.4, 0.5)).hex
-
- super().save(*args, **kwargs)
-
class DocumentType(MatchingModel):