@decorators.must_be_logged_in
def prereg_draft_registrations(auth, **kwargs):
 campaign = kwargs.get('campaign', 'prereg')
 drafts = utils.drafts_for_user(auth.user, campaign)
 return {'draftRegistrations': [{'dateUpdated': iso8601format(draft.datetime_updated), 'dateInitiated': iso8601format(draft.datetime_initiated), 'node': {'title': draft.branched_from.title}, 'initiator': {'name': draft.initiator.fullname}, 'url': draft.branched_from.web_url_for('edit_draft_registration_page', draft_id=draft._id)} for draft in drafts]}

@ decorators . must_be_logged_in def prereg_draft_registrations ( auth , ** kwargs ) : campaign = kwargs . get ( 'campaign' , 'prereg' ) drafts = utils . drafts_for_user ( auth . user , campaign ) return { 'draftRegistrations' : [ { 'dateUpdated' : iso8601format ( draft . datetime_updated ) , 'dateInitiated' : iso8601format ( draft . datetime_initiated ) , 'node' : { 'title' : draft . branched_from . title } , 'initiator' : { 'name' : draft . initiator . fullname } , 'url' : draft . branched_from . web_url_for ( 'edit_draft_registration_page' , draft_id = draft . _id ) } for draft in drafts ] }
api endpoint; returns prereg draft registrations the user can resume .