This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make publishing filters work with generic Fluent models, re #32
Make the `PublishingPublishedFilter` and `PublishingStatusFilter` publishing status admin filters compatible with models that do not provide the standard ICEKit publishing features (and DB fields) from `PublishingModel`. This change is necessary to make these filters usable on parent admin pages that can include non-`PublishingModel` class, in particular the Fluent Pages default parent page admin listing /admin/fluent_pages/page/ This change is a hack and requires iterating over the actual instances of all models so it will be slow in cases where we cannot rely on `PublishingModel` fields being present, but works around the problem for now of filtering by two different publishing notions in the one polymorphic parent admin page.
- Loading branch information
Showing
1 changed file
with
70 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters