pep8ness
This commit is contained in:
parent
5d422c2296
commit
74aadc0508
|
@ -1,6 +1,3 @@
|
|||
from django.shortcuts import render
|
||||
from django.template import RequestContext
|
||||
|
||||
from . import utils
|
||||
from . import app_settings
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue