Remove unwanted URL registrations from related endpoints #369
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #275
I finally hit a wall with this trying to add related
resource
fields to the user/team association endpoints. I went into http://127.0.0.1:8000/api/v1/docs/#/role_team_assignments/role_team_assignments_create and it had duplicate view names. This was caused by the same problem as 275. Random views were unintentionally getting registered.So I had to bite the bullet and fix this. This bug was... kind of bad already. Those custom actions look concerning. It is true that the lookup field probably makes it unusable, but this isn't a good thing to rely on.