Do not allow admin users to modify a username after it has been created
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Thu, 26 Jun 2014 13:36:21 +0000 (09:36 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Thu, 26 Jun 2014 14:47:17 +0000 (10:47 -0400)
commit83dd724d3d95b988143e8a19bf18393fbec91535
treefb1ecdd40d4b12c91fc0e179f3d3d626009ec68b
parent596520ba132d3c9798672d7dbaf56a5c3707f964
Do not allow admin users to modify a username after it has been created

This involves some changes to how the default Django UserAdmin is handled with
respect to saving the form, but we simply override the changes to keep all
of the default Django functionality intact, minus allowing a username to be
modified on edit.
pgweb/account/admin.py