def withdrawn_registration_with_child(self, user, registration_with_child): withdrawn_registration = WithdrawnRegistrationFactory( registration=registration_with_child, user=registration_with_child.creator) withdrawn_registration.justification = 'We made a major error.' withdrawn_registration.save() return withdrawn_registration
def withdrawn_registration(self, registration_withdrawn, user_admin): registration_withdrawn.add_tag('existing-tag', auth=Auth(user=user_admin)) registration_withdrawn.save() withdrawn_registration = WithdrawnRegistrationFactory( registration=registration_withdrawn, user=user_admin) withdrawn_registration.justification = 'We made a major error.' withdrawn_registration.save() return withdrawn_registration
def withdrawn_registration(self, registration_withdrawn, user_admin): registration_withdrawn.add_tag( 'existing-tag', auth=Auth(user=user_admin)) registration_withdrawn.save() withdrawn_registration = WithdrawnRegistrationFactory( registration=registration_withdrawn, user=user_admin) withdrawn_registration.justification = 'We made a major error.' withdrawn_registration.save() return withdrawn_registration
def withdrawn_registration(self, registration): withdrawn_registration = WithdrawnRegistrationFactory( registration=registration, user=registration.creator) withdrawn_registration.justification = 'We made a major error.' withdrawn_registration.save() return withdrawn_registration