Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow models.PROTECT in the models#97

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
monsanto-pinheiro wants to merge2 commits intotrco:master
base:master
Choose a base branch
Loading
frommonsanto-pinheiro:patch-1

Conversation

@monsanto-pinheiro
Copy link

Catch exception 'ProtectedError' when try to remove a pk with a relation in the model.
Only have to define "on_delete=models.PROTECT" in the model fields.

Catch exception 'ProtectedError' when try to remove a pk with a relation in the model.Only have to define "on_delete=models.PROTECT" in the model fields.
@trco
Copy link
Owner

trco commentedApr 10, 2020
edited
Loading

@monsanto-pinheiro Thanks for your PR, however I can't consider it unless it includes test for the change. Please add a test and I would gladly approve this PR.

@monsanto-pinheiro
Copy link
Author

I only did tests for 'tests_unit'. I didn't for functional. Please, can you do it?
cheers,

@trco
Copy link
Owner

trco commentedJul 1, 2023

@monsanto-pinheiro Same as in#126 (comment). Sorry for not including your PR back in 2020. I'm again working on this package from time to time thus I would like to ask you if you're interested in adjusting this outdated PR to the current code. It would be great to have you as collaborator. Otherwise I would like to thank you for your contribution and include your idea in one of the next releases.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@trcotrcoAwaiting requested review from trco

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@monsanto-pinheiro@trco

[8]ページ先頭

©2009-2025 Movatter.jp