mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 06:45:05 +01:00
Merge branch 'master' of https://github.com/danielquinn/paperless
This commit is contained in:
commit
1bfd5bcc2f
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
|
||||
|
||||
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 == '-':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue