# Path: brasilcomvc/feedback/models.py
# class Feedback(models.Model):
# 
#     email = models.EmailField()
#     question_1 = models.BooleanField(QUESTIONS[0], default=False)
#     question_2 = models.BooleanField(QUESTIONS[1], default=False)
#     question_3 = models.BooleanField(QUESTIONS[2], default=False)
#     question_4 = models.BooleanField(QUESTIONS[3], default=False)
#     question_5 = models.BooleanField(QUESTIONS[4], default=False)
#     comments = models.TextField(default='')
# 
#     created = models.DateTimeField(auto_now_add=True)
#     updated = models.DateTimeField(auto_now=True)
# 
#     comments.verbose_name = 'comentários'
# 
#     def __str__(self):
#         return '{} - {}'.format(self.email, self.created)
# 
#     def __unicode__(self):
#         return '{} - {}'.format(self.email, self.created)


from django import forms
from .models import Feedback



class FeedbackForm(forms.ModelForm):

    class Meta:
        fields = [
            'email',
            'question_1',
            'question_2',
            'question_3',
            'question_4',
            'question_5',
            'comments',
        ]

# Path: brasilcomvc/feedback/models.py
# class Feedback(models.Model):
# 
#     email = models.EmailField()
#     question_1 = models.BooleanField(QUESTIONS[0], default=False)
#     question_2 = models.BooleanField(QUESTIONS[1], default=False)
#     question_3 = models.BooleanField(QUESTIONS[2], default=False)
#     question_4 = models.BooleanField(QUESTIONS[3], default=False)
#     question_5 = models.BooleanField(QUESTIONS[4], default=False)
#     comments = models.TextField(default='')
# 
#     created = models.DateTimeField(auto_now_add=True)
#     updated = models.DateTimeField(auto_now=True)
# 
#     comments.verbose_name = 'comentários'
# 
#     def __str__(self):
#         return '{} - {}'.format(self.email, self.created)
# 
#     def __unicode__(self):
#         return '{} - {}'.format(self.email, self.created)


# Path: brasilcomvc/feedback/forms.py
from django import forms
from .models import Feedback




class FeedbackForm(forms.ModelForm):

    class Meta:
        fields = [
            'email',
            'question_1',
            'question_2',
            'question_3',
            'question_4',
            'question_5',
            'comments',
        ]

        model = Feedback