mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
newforms-admin: Fixed #7410 -- Added save_as to the context of a couple auth views. Thanks James Turnbull.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7610 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
0f3f082ed5
commit
98d30caedb
@ -53,6 +53,7 @@ class UserAdmin(admin.ModelAdmin):
|
||||
'has_absolute_url': False,
|
||||
'auto_populated_fields': (),
|
||||
'opts': User._meta,
|
||||
'save_as': False,
|
||||
'username_help_text': User._meta.get_field('username').help_text,
|
||||
}, context_instance=template.RequestContext(request))
|
||||
|
||||
|
@ -122,5 +122,6 @@ def user_change_password(request, id):
|
||||
'has_absolute_url': False,
|
||||
'opts': User._meta,
|
||||
'original': user,
|
||||
'save_as': False,
|
||||
'show_save': True,
|
||||
}, context_instance=RequestContext(request))
|
||||
|
Loading…
x
Reference in New Issue
Block a user