9 lines
243 B
Python
9 lines
243 B
Python
from rest_framework import serializers
|
|
|
|
from .models import Project
|
|
|
|
|
|
class ProjectSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = Project
|
|
fields = ('name', 'code', 'iacuc_number', 'description', 'sort_order')
|