Добавлены классы ответов
This commit is contained in:
30
net/xeaf/rack/models/responses/empty_response.py
Normal file
30
net/xeaf/rack/models/responses/empty_response.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# 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)
|
||||
Reference in New Issue
Block a user