Skip to content

Commit

Permalink
remove print line
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahframe committed Jun 10, 2024
1 parent 1999aed commit ba912f5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions cdhweb/people/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,6 @@ def breadcrumbs(self):
def get_context(self, request):
"""Add recent BlogPosts by this Person to their Profile."""
context = super().get_context(request)
print("*******")
print(self.person.events.all())
# get 3 most recent published posts with this person as author;
# get 3 most recent events with this person as a speaker;
# get 3 most recent projects with this person as a member;
Expand Down
3 changes: 0 additions & 3 deletions cdhweb/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ def order_by_newest_grant(self):

def recent(self):
"""Order projects by date published."""
# NOTE we can't use ordering on the model to do this by default, so we
# have to make sure to call this method instead. See:
# https://docs.wagtail.io/en/stable/topics/pages.html#page-queryset-ordering
return self.order_by("-first_published_at")


Expand Down

0 comments on commit ba912f5

Please sign in to comment.