Not inclined to test a 4 year old migration

This commit is contained in:
Trenton H 2024-10-04 12:28:49 -07:00
parent f95ebcf903
commit e63731a374

View File

@ -20,11 +20,11 @@ logger = logging.getLogger("paperless.migrations")
# This is code copied straight paperless before the change.
###############################################################################
class defaultdictNoStr(defaultdict):
def __str__(self):
def __str__(self): # pragma: no cover
raise ValueError("Don't use {tags} directly.")
def many_to_dictionary(field):
def many_to_dictionary(field): # pragma: no cover
# Converts ManyToManyField to dictionary by assuming, that field
# entries contain an _ or - which will be used as a delimiter
mydictionary = dict()