This commit is contained in:
Benjamin Dauvergne 2017-03-03 14:28:35 +01:00
parent 5d422c2296
commit 74aadc0508
2 changed files with 0 additions and 8 deletions

View File

@ -1,6 +1,3 @@
from django.shortcuts import render
from django.template import RequestContext
from . import utils
from . import app_settings

View File

@ -406,11 +406,6 @@ class UnlinkView(LoggerMixin, SingleObjectMixin, FormView):
if self.request.user != fc_account.user:
raise PermissionDenied
def get_context_data(self, **kwargs):
ctx = super(UnlinkView, self).get_context_data()
ctx['fc_account'] = self.fc_account
return ctx
def form_valid(self, form):
if not self.fc_account.user.has_usable_password():
form.save()