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

overriding save() method #48

Closed
MAM-SYS opened this issue Jun 6, 2021 · 3 comments
Closed

overriding save() method #48

MAM-SYS opened this issue Jun 6, 2021 · 3 comments

Comments

@MAM-SYS
Copy link
Contributor

MAM-SYS commented Jun 6, 2021

hello guys, hope you are all fine
i faced an issue about overriding some of save() method in some models like Industry or Company
i think save() method in these models doesn't have all necessary parameters(just have force_update and force_update)

so i face with this error when try to create an instance of these models:

using error in save() override
i think we should pass all parameters save(self, force_insert=False, force_update=False, using=None, update_fields=None)
or save(self, *args, **kwargs)
am i right?
sorry if i disturb a lot

@sbabashahi
Copy link
Member

I think beet practice is using *args, **kwargs, do you work on this issue?

@MAM-SYS
Copy link
Contributor Author

MAM-SYS commented Jun 7, 2021

Yes
I will send the changes
Thanks

MAM-SYS added a commit to MAM-SYS/backend that referenced this issue Jun 7, 2021
MAM-SYS added a commit to MAM-SYS/backend that referenced this issue Jun 7, 2021
@sbabashahi
Copy link
Member

Closed by #49

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

2 participants