﻿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
4061	Document how to limit access to contrib.databrowse	bin	nobody	"For people that want to limit access to the databrowse contrib, it might make sense to point to the wrapper function at:

[http://www.djangoproject.com/documentation/authentication/#limiting-access-to-generic-views Limiting access to generic views]

The wrapper could as well contain the register functions.

For example:

{{{ 
# Databrowse wrapper
from django.contrib import databrowse
from django.contrib.auth.decorators import login_required

databrowse.site.register(SomeModel)
databrowse.site.register(SomeOtherModel)

@login_required
def root(*args, **kwargs):
    return databrowse.site.root(*args, **kwargs)
}}}

Regards,
bin"		closed	contrib.databrowse	dev		fixed	databrowse		Ready for checkin	1	0	0	0	0	0
