Guest User

Untitled

a guest
Jun 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. class National_ID_Card(models.Model):
  2. name = *************
  3. ID = *************
  4. address = *************
  5. state = *************
  6. nation = **********
  7.  
  8. def __str__(self):
  9. return self.name
  10.  
  11.  
  12.  
  13. class Driving_Licence(models.Model):
  14. name = *************
  15. ID = *************
  16. vehicle_type = **********
  17. callahan = ***********
  18. def __str__(self):
  19. return self.name
  20.  
  21. class NationalIDForm(forms.ModelForm):
  22. class Meta:
  23. model = National_ID_Card
  24. fields = ('__all__')
  25.  
  26. class DrivingLicenceForm(forms.ModelForm):
  27.  
  28. class Meta:
  29. model = Driving_Licence
  30. fields = ('__all__')
Add Comment
Please, Sign In to add comment