'Deactivate registration.
:param messages.RegistrationResource regr: The Registration Resource
to be deactivated.
:returns: The Registration resource that was deactivated.
:rtype: `.RegistrationResource`'

def deactivate_registration(self, regr):

    return self.update_registration(regr, update={'status': 'deactivated'})
