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

[Feature] Clone non-editable fields #812

Open
2 tasks done
motro opened this issue Jul 11, 2023 · 1 comment
Open
2 tasks done

[Feature] Clone non-editable fields #812

motro opened this issue Jul 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@motro
Copy link

motro commented Jul 11, 2023

Is this feature missing in the latest version?

  • I'm using the latest release

Is your feature request related to a problem? Please describe.

Setting a model's field to be uneditable (editable=False) is meant to prevent updating an existing instance, however the field can be set upon creation. The create_copy_of_instance method filters out non-editable fields from the cloned instance making it different from the source object on one hand and impossible to fill on the other.

Describe the solution you'd like?

Clone non-editable fields by default or by passing an argument.

Describe alternatives you've considered?

None

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@motro motro added the enhancement New feature or request label Jul 11, 2023
@github-actions
Copy link
Contributor

Thanks for reporting this issue, don't forget to star this project if you haven't already to help us reach a wider audience.

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

No branches or pull requests

1 participant