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

Fix #51 -- Address two issues with handling of rename operations. #54

Closed
wants to merge 0 commits into from

Conversation

charettes
Copy link
Owner

No description provided.

Comment on lines 327 to 333
# XXX: Explicitly define the signature as migration serializer rely on
# __init__ introspection to assign the kwargs.
def __init__(self, model_name, old_name, new_name, stage):
super().__init__(
model_name=model_name, old_name=old_name, new_name=new_name, stage=stage
)

Copy link
Owner Author

Choose a reason for hiding this comment

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

I was thinking of taking advantage of PEP-0362 by implementing a StagedOperation.__init_subclass__ that sets an __init__.__signature__ but I figured this was less arcane.

Copy link
Owner Author

Choose a reason for hiding this comment

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

For reference here's what it would look like 26ad4fb.

Definitely not worth the complexity tradeoff IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant