From 7792181d3c479cf7d2f9b6a450812bb66bc172c1 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Mon, 9 Mar 2026 10:01:40 -0700 Subject: [PATCH] Cleanup this not used command --- .../management/commands/loaddata_stdin.py | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/documents/management/commands/loaddata_stdin.py diff --git a/src/documents/management/commands/loaddata_stdin.py b/src/documents/management/commands/loaddata_stdin.py deleted file mode 100644 index f6feb2e8d..000000000 --- a/src/documents/management/commands/loaddata_stdin.py +++ /dev/null @@ -1,22 +0,0 @@ -import sys - -from django.core.management.commands.loaddata import Command as LoadDataCommand - - -# This class is used to migrate data between databases -# That's difficult to test -class Command(LoadDataCommand): # pragma: no cover - """ - Allow the loading of data from standard in. Sourced originally from: - https://gist.github.com/bmispelon/ad5a2c333443b3a1d051 (MIT licensed) - """ - - def parse_name(self, fixture_name): - self.compression_formats["stdin"] = (lambda x, y: sys.stdin, None) - if fixture_name == "-": - return "-", "json", "stdin" - - def find_fixtures(self, fixture_label): - if fixture_label == "-": - return [("-", None, "-")] - return super().find_fixtures(fixture_label)