Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 822491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:48:23+00:00 2026-05-15T02:48:23+00:00

I extended RegistrationFormUniqueEmail class CustomRegistrationFormUniqueEmail(RegistrationFormUniqueEmail): first_name = forms.CharField(label=_(‘First name’), max_length=30,required=True) last_name = forms.CharField(label=_(‘Last name’),

  • 0

I extended RegistrationFormUniqueEmail

class CustomRegistrationFormUniqueEmail(RegistrationFormUniqueEmail):
    first_name = forms.CharField(label=_('First name'), max_length=30,required=True)
    last_name = forms.CharField(label=_('Last name'), max_length=30, required=True)
    def save(self, profile_callback=None):
        new_user = super(CustomRegistrationFormUniqueEmail, self).save(profile_callback=profile_callback)
        new_user.first_name = self.cleaned_data['first_name']
        new_user.last_name = self.cleaned_data['last_name']
        return new_user

then changed view

#       form = form_class(data=request.POST, files=request.FILES)
        form = CustomRegistrationFormUniqueEmail(data=request.POST, files=request.FILES)

But, still I see default form which contains four fields only.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T02:48:23+00:00Added an answer on May 15, 2026 at 2:48 am

    We recently implemented such a form. Here’s what we’ve done:

    • Create a new backend (just copy it from the default backend to start with)

      registration/
          backends/
              default/
              custom/ # <- your new backend
      

      …

    • In the new urls.py adjust the backend arguments

      ...
      { 'backend': 'registration.backends.custom.DefaultBackend' },
      ...
      
    • Create a forms.py under custom. Adjust this form to your liking (fields and validations)

    • In the registration/urls.py point to the proper backend:

       # from registration.backends.default.urls import *
       from registration.backends.custom.urls import *
      

    That should work. Particularly this works because:

    • Your custom/__init__.py will have a DefaultBackend class with a get_form_class method:

      def get_form_class(self, request):
          """
          Return the default form class used for user registration.
          """
          return RegistrationForm
      
    • And you import your own RegistrationForm in that file, too:

      from registration.backends.custom.forms import RegistrationForm
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SharePoint site extended for forms authentication. The Active Directory site is
Extended Backus–Naur Form: EBNF I'm very new to parsing concepts. Where can I get
Can jQuery be extended so that I can use the above syntax? I can't
I'm currently adding some new extended classes to this code: foreach (BaseType b in
What is the equivalent of the extended procedure 'xp_dirscan' in SQL Server 2005?
I've set up FBA on an extended site, added a user, verified the central
I am working on a project that is built on an extended version of
I know of the following: The venerable getopt(3) The extended getopt_long glibc's argp parser
Is there a way to write an enumeration that can be extended. I have
I have a C++ Windows application that can be extended by writing C++ plugins,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.