Make serializer respect primaryKey/attrs