foerderbarometer/input/models.py

18 lines
418 B
Python
Raw Normal View History

2020-09-21 12:27:16 +00:00
from django.db import models
2020-09-22 10:21:05 +00:00
class Project(models.Model):
2020-09-28 09:45:15 +00:00
name = models.CharField(max_length=200)
start = models.DateTimeField('start date')
2020-09-22 10:21:05 +00:00
def __str__(self):
2020-09-29 07:53:29 +00:00
return self.name
2020-09-30 09:04:47 +00:00
class Volonteer(models.Model):
name = models.CharField(max_length=200)
email = models.CharField(max_length=200)
username = models.CharField(max_length=200)
def __str__(self):
return self.name