зеркало из https://github.com/mozilla/kitsune.git
Drop fxa_avatar in profile clear()
This commit is contained in:
Родитель
aa7bb47c8a
Коммит
e7c5e872ff
|
@ -152,6 +152,7 @@ class Profile(ModelBase):
|
|||
self.name = ""
|
||||
self.public_email = False
|
||||
self.avatar = None
|
||||
self.fxa_avatar = ""
|
||||
self.bio = ""
|
||||
self.website = ""
|
||||
self.twitter = ""
|
||||
|
|
|
@ -93,8 +93,6 @@ def suggest_username(email):
|
|||
def deactivate_user(user, moderator):
|
||||
user.is_active = False
|
||||
user.save()
|
||||
user.profile.fxa_avatar = ""
|
||||
user.profile.save()
|
||||
# Clear user settings to remove incoming notifications
|
||||
Setting.objects.filter(user=user).delete()
|
||||
Watch.objects.filter(user=user).delete()
|
||||
|
|
Загрузка…
Ссылка в новой задаче