@@ -0,0 +1,2326 @@
+__author__ = 'sweemeng'%0Afrom popit.models import Person%0Afrom popit.models import Organization%0Afrom popit.models import Post%0Afrom popit.models import Membership%0Afrom popit.models import ContactDetail%0Afrom popit.models import Link%0Afrom popit.models import Identifier%0Afrom popit.models import OtherName%0Afrom hvad.contrib.restframework import TranslatableModelSerializer%0Afrom popit.serializers.base import BasePopitSerializer%0Afrom popit.serializers.misc import OtherNameSerializer%0Afrom popit.serializers.misc import IdentifierSerializer%0Afrom popit.serializers.misc import LinkSerializer%0Afrom popit.serializers.misc import ContactDetailSerializer%0A%0A%0A# Why not flat? Because it is not truly flat, we just remove some relationship, but not all%0A# This is mostly read only we won't be writing data to this%0Aclass MinPersonSerializer(TranslatableModelSerializer):%0A    other_names = OtherNameSerializer(many=True, required=False)%0A    identifiers = IdentifierSerializer(many=True, required=False)%0A    links = LinkSerializer(many=True, required=False)%0A    contact_details = ContactDetailSerializer(many=True, required=False)%0A %0A    class Meta:%0A        model = Person%0A        extra_kwargs = %7B'id': %7B'read_only': False, 'required': False%7D%7D%0A%0A%0Aclass MinOrganizationSerializer(TranslatableModelSerializer):%0A    other_names = OtherNameSerializer(many=True, required=False)%0A    identifiers = IdentifierSerializer(many=True, required=False)%0A    links = LinkSerializer(many=True, required=False)%0A    contact_details = ContactDetailSerializer(many=True, required=False)%0A %0A    class Meta:%0A        model = Organization%0A        extra_kwargs = %7B'id': %7B'read_only': False, 'required': False%7D%7D%0A%0A%0Aclass MinMembershipSerializer(TranslatableModelSerializer):%0A    links = LinkSerializer(many=True, required=False)%0A    contact_details = ContactDetailSerializer(many=True, required=False)%0A%0A    class Meta:%0A        model = Membership%0A        extra_kwargs = %7B'id': %7B'read_only': False, 'required': False%7D%7D%0A%0A%0Aclass MinPostSerializer(TranslatableModelSerializer):%0A    other_labels = OtherNameSerializer(many=True, required=False)%0A    links = LinkSerializer(many=True, required=False)%0A    contact_details = ContactDetailSerializer(many=True, required=False)%0A %0A    class Meta:%0A        model = Post%0A        extra_kwargs = %7B'id': %7B'read_only': False, 'required': False%7D%7D%0A%0A

Implement serializers for #243 . Serialized is readonly for now