-
Notifications
You must be signed in to change notification settings - Fork 296
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
Avoid patch on RelationshipView
deleting relationship instance when constraint would allow null
#499
Avoid patch on RelationshipView
deleting relationship instance when constraint would allow null
#499
Conversation
187057f
to
e3c66b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! This looks good to me.
See inline comments and also a CHANGELOG entry needs to be added.
1fe5206
to
575742b
Compare
@sliverc I applied the suggested changes. |
575742b
to
6cb56d3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two linting issues (see inline comments) which concern this PR.
There are other linting issues but that's because deps are not pinned. Needs to be fixed in another PR (will see that I get to it)
example/tests/test_views.py
Outdated
'id': str(self.second_comment.id) | ||
} | ||
], | ||
'links': {'self': 'http://testserver/authors/{}/relationships/comment_set'.format(self.author.id)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./example/tests/test_views.py:246:101: E501 line too long (110 > 100 characters)
example/tests/test_views.py
Outdated
'id': str(comment.id) | ||
} | ||
], | ||
'links': {'self': 'http://testserver/authors/{}/relationships/comment_set'.format(self.author.id)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/example/tests/test_views.py:259:101: E501 line too long (110 > 100 characters)
master is now fixed after merging #501 so a rebase to master will fix the other linting issues. |
a125db9
to
31967bb
Compare
@sliverc I have rebased and pushed. |
RelationshipView
deleting relationship instance when constraint would allow null
31967bb
to
bbdaa8c
Compare
…h accordingly and updated relationship functionality for related fields
368abde
to
ea6cbfc
Compare
ea6cbfc
to
46a386e
Compare
@Alig1493 Thanks. Added missing changelog entry and merged. |
Fixes #242
Description of the Change
Added test to check for relationship view relationship types and patch accordingly and updated relationship functionality for related fields
Checklist
CHANGELOG.md
AUTHORS