﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12469	get_urls docs in ModelAdmin can be extended	benc	nobody	"It might help to explain three things regarding custom views in ModelAdmin
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_urls

1. The path in the example r'^my_view/$' will be accessed at /admin/myapp/mymodel/my_view/

2. self.my_view in the example means that you probably want to define the view inside the MyModelAdmin Class so it has access to the ModelAdmin.

3. my_view will be called with the request and the ModelAdmin instance as arguments:
def my_view(request, model_admin):

A simple class with get_urls and a view will be best.
Thanks"		new	Documentation	1.1			get_urls ModelAdmin		Unreviewed	0	0	0	0	0	0
