Last active
April 8, 2020 19:05
-
-
Save khamidou/0c5863f6184ad918fbb0f5d9c938121d to your computer and use it in GitHub Desktop.
This file contains 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
from django.db import models | |
from django import forms | |
class Niveau(forms.Form): | |
choix_niveau=( | |
('deb', 'debutant'), | |
('int', 'intermédiaire'), | |
('av', 'avancé')) | |
niveau=forms.ChoiceField(choices=choix_niveau) | |
class Frequence(forms.Form): | |
choix_frequence=( | |
('un', '1'), | |
('deux', '2'), | |
('trois', '3'), | |
('quatre', '4'), | |
('cinq', '5'), | |
('six', '6')) | |
frequence=forms.ChoiceField(choices=choix_frequence) | |
class Objectif(forms.Form): | |
choix_objectif=( | |
('fesses', 'fesses'), | |
('abdos','abdos'), | |
('upper_body', 'upper_body')) | |
objectif=forms.ChoiceField(choices=choix_objectif) | |
class Push_ups(models.Model): | |
difficulty = models.IntegerField() | |
name = models.CharField() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment