Skip to content

Commit

Permalink
Officially deprecate funder_articles #4461
Browse files Browse the repository at this point in the history
  • Loading branch information
joemull authored and StephDriver committed Oct 25, 2024
1 parent 5915b2f commit c6c74a6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/journal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,15 @@ def serve_journal_cover(request):

@has_journal
def funder_articles(request, funder_id):
# NOTE: This view is not usable currently because
# it is visually indistinguishable from the main Article search page.
# There is a filter applied to the queryset by the funder,
# but that is not represented in the filters, and the main heading
# just says "Articles".
""" Renders the list of articles in the journal.
""" Deprecated. Renders the list of articles in the journal.
:param request: the request associated with this call
:return: a rendered template of all articles
"""
raise DeprecationWarning(
'This view is deprecated.'
)

if request.POST and 'clear' in request.POST:
return logic.unset_article_session_variables(request)

Expand Down

0 comments on commit c6c74a6

Please sign in to comment.