7 lines
271 B
Python
7 lines
271 B
Python
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 |