mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-22 08:19:04 +00:00
11 lines
265 B
Python
11 lines
265 B
Python
|
|
from rest_framework.serializers import ModelSerializer
|
|
from .models import Organization
|
|
|
|
|
|
class OrgSerializer(ModelSerializer):
|
|
class Meta:
|
|
model = Organization
|
|
fields = '__all__'
|
|
read_only_fields = ['id', 'created_by', 'date_created']
|