django admin reverse url lookup

Posted Over 5 years ago. Visible to the public. Draft.

Add form

Given app is called <app_name> and model in the app is called <model_table> then the following gets the link to the "add" form on the admin page:

url = reverse('admin:<app_name>_<model_table>_add')
Cuauhtemoc
Last edit
Over 5 years ago
Cuauhtemoc
Posted by Cuauhtemoc to Python Django (2018-08-16 11:58)