31 lines
741 B
Python
31 lines
741 B
Python
# DRF Rack
|
|
# Библиотека классов расширений для Django REST Framework
|
|
#
|
|
# Автор: Николай В. Анохин <n.anokhin@xeaf.net>
|
|
# Все права защищены. Лицензия: MIT
|
|
|
|
"""
|
|
Описание класса EmptyResponse
|
|
"""
|
|
|
|
from rest_framework import status
|
|
|
|
from net.xeaf.rack.core import CoreResponse
|
|
|
|
|
|
class EmptyResponse(CoreResponse):
|
|
"""
|
|
Пустой положительный ответ
|
|
"""
|
|
|
|
def __init__(self):
|
|
"""
|
|
Инициализация
|
|
"""
|
|
|
|
super(EmptyResponse, self).__init__(
|
|
internal_status=status.HTTP_200_OK,
|
|
external_status=status.HTTP_200_OK,
|
|
data=None,
|
|
meta=None)
|