Skip to content

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

License clarification

Daniel Quinn51173d80cf1a
diff --git a/src/documents/management/commands/loaddata_stdin.py b/src/documents/management/commands/loaddata_stdin.py
index ca0b9ef7b..9cce7a047 100644
--- a/src/documents/management/commands/loaddata_stdin.py
+++ b/src/documents/management/commands/loaddata_stdin.py
@@ -1,17 +1,14 @@
-"""
-Source:
- https://gist.github.com/bmispelon/ad5a2c333443b3a1d051
-
-License:
- MIT
- Copyright (c) 2016 Baptiste Mispelon
-"""
import sys
from django.core.management.commands.loaddata import Command as LoadDataCommand
class Command(LoadDataCommand):
+ """
+ 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 == '-':