roo roo roo down the river we go...
This commit is contained in:
12
tenants/serializers.py
Normal file
12
tenants/serializers.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from rest_framework import serializers
|
||||
from .models import Tenant
|
||||
|
||||
|
||||
class TenantSerializer(serializers.ModelSerializer):
|
||||
"""
|
||||
Serializer for the Tenant model.
|
||||
"""
|
||||
class Meta:
|
||||
model = Tenant
|
||||
fields = '__all__'
|
||||
read_only_fields = ('created_at', 'updated_at', 'schema_name')
|
||||
Reference in New Issue
Block a user