You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
418 B

4 years ago
4 years ago
  1. from django.db import models
  2. class Project(models.Model):
  3. name = models.CharField(max_length=200)
  4. start = models.DateTimeField('start date')
  5. def __str__(self):
  6. return self.name
  7. class Volonteer(models.Model):
  8. name = models.CharField(max_length=200)
  9. email = models.CharField(max_length=200)
  10. username = models.CharField(max_length=200)
  11. def __str__(self):
  12. return self.name