
from nap import models, fields, api, serialiser, publisher

from .models import Choice, Poll


class ChoiceSerialiser(models.ModelSerialiser):

    class Meta:
        model = Choice
        exclude = ('poll,')


class PollSerialiser(serialiser.Serialiser):
    api_name = 'poll'

    question = fields.Field()
    published = fields.DateTimeField('pub_date')
    choices = fields.ManySerialiserField(serialiser=ChoiceSerialiser())


class PollPublisher(publisher.Publisher):
    serialiser = PollSerialiser()
    api_name = 'polls'

    def get_object_list(self):
        return Poll.objects.all()


api.register('api', PollPublisher)

@@ -395,16 +395,35 @@
 erField(
+'choices_set.all', 
 serialis

Add attribute to choices field declaration