Don't try to log photo contents. (bug 773854)

This commit is contained in:
Allen Short 2012-07-16 19:27:46 -05:00
Родитель 1b44298b79
Коммит b58cde1e93
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -368,7 +368,7 @@ class BaseAdminUserEditForm(object):
def changed_fields(self):
"""Returns changed_data ignoring these fields."""
return (set(self.changed_data) -
set(['admin_log', 'notifications',
set(['admin_log', 'notifications', 'photo',
'password', 'password2', 'oldpassword']))
def changes(self):

Просмотреть файл

@ -124,7 +124,7 @@ class AdminUserEditForm(BaseAdminUserEditForm, UserEditForm):
def save(self, *args, **kw):
profile = super(UserEditForm, self).save()
profile = super(AdminUserEditForm, self).save()
if self.cleaned_data['anonymize']:
amo.log(amo.LOG.ADMIN_USER_ANONYMIZED, self.instance,
self.cleaned_data['admin_log'])

2
vendor

@ -1 +1 @@
Subproject commit cc1aa8ccf7af4605df0551dd6eb0a9d00ed48da1
Subproject commit b26919075fb2dc85af0bb98448c656dd449f47c2