salw/salw_admin/pssm_api/serializers.py

7 lines
271 B
Python
Raw Normal View History

2024-11-28 15:06:12 +00:00
from rest_framework import serializers
from .models import PSSM_Countries
class PssmCountriesSerializer(serializers.ModelSerializer):
class Meta:
model = PSSM_Countries
fields = '__all__' # Serialize all fields; you can specify a subset if preferred