serializers.py 329 B

1234567891011
  1. from rest_framework import serializers, status
  2. from rest_framework.exceptions import ValidationError
  3. from apps.indicatortype.models import IndicatorType
  4. from apps.patient.models import Patient
  5. class IndicatorTypeSerializer(serializers.ModelSerializer):
  6. class Meta:
  7. model = IndicatorType
  8. fields = '__all__'