Permalink
Browse files

newforms-admin: Fixed #7410 -- Added save_as to the context of a coup…

…le auth views. Thanks James Turnbull.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7610 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 0f3f082 commit 98d30caedb4bbc36b0ea1e3d812b4abb5732467e @brosner brosner committed Jun 10, 2008
Showing with 2 additions and 0 deletions.
  1. +1 −0 django/contrib/auth/admin.py
  2. +1 −0 django/contrib/auth/views.py
@@ -53,6 +53,7 @@ def add_view(self, request):
'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))

0 comments on commit 98d30ca

Please sign in to comment.