Backend Draft
This commit is contained in:
8
backend/tenants/serializers.py
Normal file
8
backend/tenants/serializers.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from rest_framework import serializers
|
||||
from .models import Tenant
|
||||
|
||||
class TenantSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = Tenant
|
||||
fields = ['id', 'name', 'subdomain', 'created_at', 'is_active']
|
||||
read_only_fields = ['id', 'created_at']
|
||||
Reference in New Issue
Block a user