mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-05 05:37:50 +02:00
Rename DCC project into RAM
RAM: Railroad Assets Manager
This commit is contained in:
8
ram/ram/parsers.py
Normal file
8
ram/ram/parsers.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from rest_framework.parsers import BaseParser
|
||||
|
||||
|
||||
class PlainTextParser(BaseParser):
|
||||
media_type = "text/plain"
|
||||
|
||||
def parse(self, stream, media_type=None, parser_context=None):
|
||||
return stream.read()
|
Reference in New Issue
Block a user