jumpserver/apps/audits/serializers.py

17 lines
358 B
Python
Raw Normal View History

2016-10-08 16:12:18 +00:00
# -*- coding: utf-8 -*-
2016-10-20 11:01:57 +00:00
#
from __future__ import absolute_import, unicode_literals
2016-10-08 16:12:18 +00:00
from rest_framework import serializers
2016-10-20 11:01:57 +00:00
from . import models
2016-10-08 16:12:18 +00:00
class ProxyLogSerializer(serializers.ModelSerializer):
class Meta:
model = models.ProxyLog
class CommandLogSerializer(serializers.ModelSerializer):
class Meta:
model = models.CommandLog