2018-09-16 16:52:23 +00:00
|
|
|
from rest_framework import serializers
|
|
|
|
from postings.models import UniversityReview
|
|
|
|
|
|
|
|
|
|
|
|
class UniversityReviewSerializer(serializers.ModelSerializer):
|
|
|
|
class Meta:
|
|
|
|
model = UniversityReview
|
|
|
|
fields = [
|
|
|
|
'pk',
|
|
|
|
'university_name',
|
2018-09-26 11:14:02 +00:00
|
|
|
'rating',
|
2018-09-16 16:52:23 +00:00
|
|
|
'title',
|
|
|
|
'username',
|
|
|
|
'date_published',
|
|
|
|
'content',
|
|
|
|
]
|
|
|
|
read_only_fields =[
|
|
|
|
'pk',
|
|
|
|
]
|