Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update BaseForm to work with Registrations #597

Merged
merged 1 commit into from
Dec 12, 2019

Conversation

irisfaraway
Copy link
Member

The back office has a few forms that inherit from BaseForm but supply a registration in place of a transient_registration. However, as registrations don't have tokens, this caused errors. This PR updates the BaseForm to only deal with tokens when the object in question is actually a TransientRegistration.

(We should arguably consider renaming transient_registration to resource or something like that, but I think that's a bigger job for another time!)

The back office has a few forms that inherit from BaseForm but supply a registration in place of a transient_registration. However, as registrations don't have tokens, this caused errors. This PR updates the BaseForm to only deal with tokens when the object in question is actually a TransientRegistration.

(We should arguably consider renaming `transient_registration` to `resource` or something like that, but I think that's a bigger job for another time!)
@irisfaraway irisfaraway added the bug Something isn't working label Dec 12, 2019
@irisfaraway irisfaraway self-assigned this Dec 12, 2019
Copy link
Contributor

@cintamani cintamani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙆

@irisfaraway irisfaraway merged commit 1c270a9 into master Dec 12, 2019
@irisfaraway irisfaraway deleted the housekeeping/base-form-reg branch December 12, 2019 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants