mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
License clarification
This commit is contained in:
parent
e149baec4e
commit
51173d80cf
1 changed files with 5 additions and 8 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue