Tuesday, June 15, 2021

Re: Adding Two Models In Django

Use foreign key in 1 model for initiat another model...

On Wed, Jun 16, 2021, 00:04 Ridwan Adeyemo <adesolaridwan2003@gmail.com> wrote:
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 email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5eaa4bb6-f411-4952-8a24-09c5a71f60c2n%40googlegroups.com.

--
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 email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANMvxF24E23qK5zXihVcZJs7MBi6tRoaNXL1U%2Buz%2BExBUDNw-Q%40mail.gmail.com.

No comments:

Post a Comment