~roadmr/canonical-identity-provider/fix-deprecation-warnings-1

« back to all changes in this revision

Viewing changes to src/api/v20/registration.py

  • Committer: Tom Wardill
  • Date: 2018-02-14 14:05:59 UTC
  • mfrom: (1602 work)
  • mto: (1597.1.44 django-1.10)
  • mto: This revision was merged to the branch mainline in revision 1603.
  • Revision ID: tom.wardill@canonical.com-20180214140559-ow5txzwy46nopws2
Merge flake8 changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
from django.db import transaction
6
6
from django.template.loader import render_to_string
7
7
 
8
 
from identityprovider.models import (
9
 
    EmailAddress,
10
 
    Account,
11
 
)
12
 
from identityprovider.models.const import AccountCreationRationale
13
8
from identityprovider.emailutils import (
14
9
    send_impersonation_email,
15
10
    send_new_user_email,
16
11
)
17
12
from identityprovider.forms import NewAccountForm
18
13
from identityprovider.login import PasswordPolicyError
 
14
from identityprovider.models import (
 
15
    Account,
 
16
    EmailAddress,
 
17
)
 
18
from identityprovider.models.const import AccountCreationRationale
19
19
from identityprovider.signals import account_created
20
20
from identityprovider.validators import PASSWORD_LEAKED
21
21
from webservices.launchpad import set_lp_username