Re: Authentication with Multiple User

2021-07-07 Thread Ridwan Adeyemo
ccount): > ... > # business account only fields > > # settings.py > > AUTH_USER_MODEL = 'app_name.BaseAccount' > > you should avoid use of the BaseAccount directly > On Jun 29, 2021 6:05 PM, "Ridwan Adeyemo" > wrote: > > Hello, >

Authentication with Multiple User

2021-06-29 Thread Ridwan Adeyemo
Hello, How do I implement a multiple users registration/signup form. For example the user needs to have (username, name password, and confirm password ) while the seller is going to have (Business Name, Business Email, address, tax id, phone number and password, and confirm password) Best Reg

Re: Adding Two Models In Django

2021-06-16 Thread Ridwan Adeyemo
Thanks man.👍 On Wed, Jun 16, 2021, 5:22 PM Ayush Bisht wrote: > I think you are trying to sum up the value of two model fields and store > them in some other field. > > > so for that u can proceed from base. > > simple you just have to update that field in save method > > for example : > *class

Re: Adding Two Models In Django

2021-06-15 Thread Ridwan Adeyemo
Please kindly describe with images. On Tue, Jun 15, 2021, 9:52 PM Sebastian Jung wrote: > Hello, > > You create all modelfields inkl. Total sum and after user submit Form with > 2 fields in save() Method you sum both fields together ans write this in > total field... > &g

Re: Adding Two Models In Django

2021-06-15 Thread Ridwan Adeyemo
Thanks for the response. Kindly explain more or provide image description. Best regards On Tue, Jun 15, 2021, 8:09 PM patel dhruvish wrote: > Use foreign key in 1 model for initiat another model... > > On Wed, Jun 16, 2021, 00:04 Ridwan Adeyemo > wrote: > >> How do I add t

Adding Two Models In Django

2021-06-15 Thread Ridwan Adeyemo
How do I add two models together in the database, two different DecimalField. i.e math_score + eng_score = total_score -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an em