mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
License clarification
This commit is contained in:
parent
e149baec4e
commit
51173d80cf
@ -1,17 +1,14 @@
|
|||||||
"""
|
|
||||||
Source:
|
|
||||||
https://gist.github.com/bmispelon/ad5a2c333443b3a1d051
|
|
||||||
|
|
||||||
License:
|
|
||||||
MIT
|
|
||||||
Copyright (c) 2016 Baptiste Mispelon
|
|
||||||
"""
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from django.core.management.commands.loaddata import Command as LoadDataCommand
|
from django.core.management.commands.loaddata import Command as LoadDataCommand
|
||||||
|
|
||||||
|
|
||||||
class Command(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):
|
def parse_name(self, fixture_name):
|
||||||
self.compression_formats['stdin'] = (lambda x, y: sys.stdin, None)
|
self.compression_formats['stdin'] = (lambda x, y: sys.stdin, None)
|
||||||
if fixture_name == '-':
|
if fixture_name == '-':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user