mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +00:00
newforms-admin: Fixed root_path in custom user add view
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c6a26037e3
commit
10c7129eb0
@ -1,5 +1,8 @@
|
||||
from django.conf.urls.defaults import *
|
||||
|
||||
# This file is NO LONGER USED in newforms-admin. See AdminSite.root() and
|
||||
# django.contrib.auth.admin instead.
|
||||
|
||||
urlpatterns = patterns('',
|
||||
#('^$', 'django.contrib.admin.views.main.index'),
|
||||
('^r/', include('django.conf.urls.shortcut')),
|
||||
|
@ -55,6 +55,7 @@ class UserAdmin(admin.ModelAdmin):
|
||||
'opts': User._meta,
|
||||
'save_as': False,
|
||||
'username_help_text': User._meta.get_field('username').help_text,
|
||||
'root_path': self.admin_site.root_path,
|
||||
}, context_instance=template.RequestContext(request))
|
||||
|
||||
admin.site.register(Group, GroupAdmin)
|
||||
|
Loading…
x
Reference in New Issue
Block a user