Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.db import models
- # Create your models here.
- from django.db import models
- from django.forms import ModelForm
- class PatientRecord(models.Model):
- name = models.CharField(max_length=100)
- phonenumber = models.CharField(max_length=3)
- birth_date = models.DateField(blank=True, null=True)
- def __unicode__(self):
- return self.name
- class PatientHistory(models.Model):
- patientid = PatientRecord
- date = models.DateField(blank=True, null=True)
- analysis = models.CharField(max_length=100)
- prescription = models.CharField(max_length=100)
- class PatientForm(ModelForm):
- class Meta:
- model = PatientRecord
- class PatientHistory(ModelForm):
- class Meta:
- model = PatientHistory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement