Jean7667 / RBM_APP

0 stars 1 forks source link

[Bug] Signup from front-end interface does not flag the user as a customer #2

Closed Jean7667 closed 3 months ago

Jean7667 commented 3 months ago

need to implement if statement in the form

Jean7667 commented 3 months ago

Making sure the user created from the interface is idendify as a customer

Create, but don't save the new author instance.

>>> new_author = f.save(commit=False)

https://docs.djangoproject.com/en/5.0/topics/forms/modelforms/

user = form.save (commit=False) can change the content of the form before saving

Jean7667 commented 3 months ago

not working with the added flag maybe an indentation issue

Jean7667 commented 3 months ago

Problem fixed by changing the indentation