Hello guys,
Sorry about the above no subject mail
I am getting a json string(json_string) from frontend. How can we update the django database in views.py. Below is my models.py.
models.py
class Patient(models.Model):
patient_id = models.CharField(primary_key=True, max_length=200)
patient_age = models.CharField(max_length=200)
patient_name = models.CharField(max_length=200)
patient_refby = models.CharField(max_length=200)
patient_gender = models.CharField(max_length=20,
default=Gender.UNKNOWN.value)
patient_id = models.CharField(primary_key=
patient_age = models.CharField(max_length=
patient_name = models.CharField(max_length=
patient_refby = models.CharField(max_length=
patient_gender = models.CharField(max_length=
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEohp0dkVzwRZWe9ig8cWWVyXq08K_qndfVmSpj8AM9Zxgaf-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment