# Path: users/models.py
# class Donor (models.Model):
#     name = models.CharField(max_length = 50, blank = False)
#     phone_number = models.CharField(max_length = 12)
#     email = models.CharField(max_length = 30, blank = True)
#     address = models.CharField(max_length = 200)
#     address_reference = models.CharField(max_length = 200, blank = True)
#     observations = models.TextField(blank = True)
#     donation_date = models.DateField()
#     user = models.OneToOneField(User,on_delete=models.CASCADE)


from .models import Donor
from django.forms import ModelForm, TextInput

class DonorForm(ModelForm):
	class Meta:
		model = Donor
		fields = [
			"email",
			"donation_date",

# Path: users/models.py
# class Donor (models.Model):
#     name = models.CharField(max_length = 50, blank = False)
#     phone_number = models.CharField(max_length = 12)
#     email = models.CharField(max_length = 30, blank = True)
#     address = models.CharField(max_length = 200)
#     address_reference = models.CharField(max_length = 200, blank = True)
#     observations = models.TextField(blank = True)
#     donation_date = models.DateField()
#     user = models.OneToOneField(User,on_delete=models.CASCADE)


# Path: users/forms.py
from .models import Donor
from django.forms import ModelForm, TextInput


class DonorForm(ModelForm):
	class Meta:
		model = Donor
		fields = [
			"email",
			"donation_date",

			"phone_number",