skip to Main Content

Dependent 2 queries on "same" column in Mysql

I have a table like below report_code | result_of_report _______________________________ Rpx-34512-00| rejected Rpx-34512-01| rejected Rpx-34512-02| rejected Rpt-22433-00| rejected Rpt-22433-01| rejected Rpt-22433-02| rejected Rpt-22433-03| rejected Rpt-22433-04| rejected Rpt-22433-05| rejected Rpt-22433-06| accepted Rcs-34555-00| rejected Rcs-34555-01| rejected Rcs-34555-02| accepted And this is what…

VIEW QUESTION

Django – Form is getting submitted but nothing saves in database – Mysql

My form is getting submitted by in phpmyadmin nothing get saved please help. Models.py from django.db import models class Customers(models.Model): first_name=models.CharField(max_length=100) . . . address=models.CharField(max_length=100) mar_stat=models.CharField(max_length=100) class Meta: db_table="customers" Views.py def customerreg(request): if request.method=='POST': if request.POST.get('first_name') and request.POST.get('last_name') and request.POST.get('gender')…

VIEW QUESTION
Back To Top
Search