Created
June 7, 2017 14:50
-
-
Save jhurtadojerves/240544fd940584093441adeba402589c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Knowledge(models.Model): | |
center = models.ForeignKey(Center) | |
group_type_choices = ( | |
('0', 'Niños'), | |
('1', 'Adultos'), | |
('2', 'Adultos Mayores'), | |
('4', 'Niños y Adultos'), | |
('5', 'Niños y Adultos Mayores'), | |
('6', 'Adultos y Adultos Mayores'), | |
('7', 'Niños, Adultos y Adultos Mayores') | |
) | |
favorite_activity_choices = ( | |
('0', 'Observar Paisajes'), | |
('1', 'Senderismo'), | |
('2', 'Contacto con la Naturaleza'), | |
('3', 'Visita Cultura'), | |
('4', 'Piscinas, Canchas, etc') | |
) | |
#1 | |
group_type = models.CharField( | |
max_length=1, | |
default=1, | |
choices=group_type_choices | |
) | |
#2 | |
max_money_per_person = models.DecimalField( | |
max_digits=8, | |
decimal_places=2, | |
validators=[MinValueValidator(0),] | |
) | |
#3 | |
number_of_people = models.PositiveIntegerField(default=1) | |
#4 | |
favorite_activity = models.CharField( | |
max_length=1, | |
default=4, | |
choices=favorite_activity_choices | |
) | |
#5 | |
#6 | |
#7 | |
#8 | |
#9 | |
#10 | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment