Skip to content

Commit

Permalink
docs: Update MyCustomAddEmailForm arguments in save()
Browse files Browse the repository at this point in the history
  • Loading branch information
atc2146 committed Jul 9, 2023
1 parent d3c5fff commit 786a5b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/forms.rst
Expand Up @@ -90,11 +90,11 @@ Used on `account_email <views.html#e-mails-management-account-email>`__ view.
from allauth.account.forms import AddEmailForm
class MyCustomAddEmailForm(AddEmailForm):

def save(self):
def save(self, request):

# Ensure you call the parent class's save.
# .save() returns an allauth.account.models.EmailAddress object.
email_address_obj = super(MyCustomAddEmailForm, self).save()
email_address_obj = super(MyCustomAddEmailForm, self).save(request)

# Add your own processing here.

Expand Down

0 comments on commit 786a5b8

Please sign in to comment.