I have used Django's reverse
multiple times in the past but getting this error today which doesn't seem intuitive enough to debug:
TypeError: _reverse_with_prefix() argument after * must be an iterable, not int
Here's the view where I am using it:
from django.urls import reverse
...
...
def show_scores_url(self, obj):
scores_url = reverse('get_scores', args=(obj.pk))
return format_html('<a href="' + scores_url + '">Scores</a>')
...
...