harvard-lil / h2o

H2O is a web app for creating and reading open educational resources, primarily in the legal field
https://opencasebook.org
GNU Affero General Public License v3.0
36 stars 30 forks source link

Drop reference to removed admin page #1990

Closed sentry-io[bot] closed 1 year ago

sentry-io[bot] commented 1 year ago

The Section admin page was removed, but as before there were some hardcoded references to it in a template override. The reference should be removed.

It's here:

web/main/templates/admin/main/casebook/change_form.html
8:      <a href="{% url 'admin:main_section_changelist' %}?casebook={{ original.id }}&o=5">

Sentry Issue: H2O-AC

NoReverseMatch: Reverse for 'main_section_changelist' not found. 'main_section_changelist' is not a valid view function or pattern name.
(29 additional frame(s) were not displayed)
...
  File "django/template/base.py", line 938, in render
    bit = node.render_annotated(context)
  File "django/template/base.py", line 905, in render_annotated
    return self.render(context)
  File "django/template/defaulttags.py", line 449, in render
    url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
  File "django/urls/base.py", line 86, in reverse
    return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
  File "django/urls/resolvers.py", line 698, in _reverse_with_prefix
    raise NoReverseMatch(msg)
bensteinberg commented 1 year ago

I think we're still seeing this error as of this morning.