Skip to content

Commit

Permalink
Merge pull request pinax#238 from micrypt/patch-1
Browse files Browse the repository at this point in the history
Avoid a KeyError due to identifier_field.
  • Loading branch information
brosner authored Jun 9, 2017
2 parents 4a2f9f8 + 87d2647 commit db60428
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ If you want to get rid of username you'll need to do some extra work:
class SignupView(account.views.SignupView):

form_class = myproject.forms.SignupForm
identifier_field = 'email'

def generate_username(self, form):
# do something to generate a unique username (required by the
Expand Down

0 comments on commit db60428

Please sign in to comment.