-
Notifications
You must be signed in to change notification settings - Fork 0
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
As an editor fixing mistakes, it would be useful to be able to temporarily unpublish a document rather than deleting it #1702
Conversation
This is a good start. Most (all, I think) of our Listing views and our Detail views extend base classes within peachjam.views.generic_views. You should be able to add Check For |
@longhotsummer thanks for the feedback. |
@@ -14,7 +14,9 @@ def get_context_data(self, **kwargs): | |||
context = super().get_context_data(**kwargs) | |||
|
|||
context["court_classes"] = CourtClass.objects.prefetch_related("courts") | |||
context["recent_judgments"] = Judgment.objects.order_by("-date")[:30] | |||
context["recent_judgments"] = Judgment.objects.exclude( |
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.
Hmm, we need to do the same in all the HomePageView
classes -- also search for recent_*
and ensure those are corrected (mostly in homepage views I think).
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.
Great, much cleaner.
Just the homepage views, pls.
Please also update I don't yet have a good recommendation for removing an unpublished doc from search, but we can leave that for now. |
Closes #1688
https://www.loom.com/share/f81c6a462db9449ca867fda83ff2bd49?sid=fa93b543-0405-4817-829c-e5bade43d3ed