Skip to content

Conversation

jonathan-s
Copy link
Contributor

Description

Instead of monkeypatching entire block of methods in djangocms-versioning we can monkeypatch single small methods to accomplish the same thing.

This PR adds a method filter_admin_model. The intended use for this method is to be able to fetch objects that are in draft in djangocms-versioning, that package will monkeypatch that method to modify the behaviour so that draft objects can be found.

Checklist

  • I have opened this pull request against release/4.0.x
  • I have updated the CHANGELOG.rst
  • I have added or modified the tests when changing logic

@jonathan-s
Copy link
Contributor Author

Closing this as the approach won't give us the desirable outcome that we need. This coupled together with versioning renders the object in the wrong way.

@jonathan-s jonathan-s closed this Mar 26, 2020
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

Successfully merging this pull request may close these issues.

1 participant