pawnhearts / django_nonmodel_admin

Allows to add sections to django admin which are not tied to any model. They can render some template for example.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NoReverseMatch exception raised when reversing a NonModel admin url.

fabiocaccamo opened this issue · comments

Enviroment

  • Django NonModel Admin version: 0.1.1
  • Python version: 3.8
  • Operating System: Linux / Ubuntu 20.04.3 LTS

Description

I need to create cross links in the admin pointing to some NonModel admin pages, to do that I need to reverse the urls, but none of my attempts worked.

What I Did

With my app called xxx and my NonModel Admin named yyy these are the urls I tried to reverse without success, the NoReverseMatch exception is raised.

url = reverse('admin:xxx_yyy')
url = reverse('admin:yyy')
url = reverse('yyy')