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

Possibility to migrate changes on save method? #47

Open
jorekai opened this issue Jul 2, 2021 · 0 comments
Open

Possibility to migrate changes on save method? #47

jorekai opened this issue Jul 2, 2021 · 0 comments

Comments

@jorekai
Copy link

jorekai commented Jul 2, 2021

Hey is it possible to migrate changes in custom save methods of a document?
I could not determine this by reading through the docs. Below is a small example

before changes:

class Test(Document):
  fieldA = ...
  fieldB = ...

after changes:

class Test(Document):
  fieldA = ...
  fieldB = ...
  fieldC = ...
  
  def save(self, *args, **kwargs):
    do_sth_with_fieldC()
    super().save()
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

No branches or pull requests

1 participant