ephes / django-cast

Django and Wagtail based blogging / podcasting app
Other
56 stars 6 forks source link

No Reverse Match for Podlove #158

Closed ephes closed 2 months ago

ephes commented 2 months ago

Via sentry:

Reverse for 'audio_podlove_detail' with keyword arguments '{'pk': 71, 'post_id': None}' not found. 1 pattern(s) tried: ['api/audios/podlove/(?P<pk>\\d+)/(?:post/(?P<post_id>\\d+)/)?$']

<div
  id="audio_{{ value.pk }}"
  data-variant="xl"
  data-url="{% url 'cast:api:audio_podlove_detail' pk=value.pk post_id=page.pk %}"
>

Seems like post_id can be None and then no URL can be found. Maybe this happens when rendering a preview?