Forms for metric manuel checking.

This commit is contained in:
Mikaël Ates 2016-01-18 18:01:05 +01:00
parent 108caa3c93
commit 8889e64736
1 changed files with 12 additions and 0 deletions

View File

@ -101,3 +101,15 @@ class SimpleAlertProfileForm(forms.ModelForm):
cleaned_data = new_cd
cleaned_data['simple_alert_profile'] = json.dumps(sap)
return cleaned_data
class TemperatureCheckForm(forms.ModelForm):
class Meta:
model = models.TemperatureCheck
fields = ['date', 'time', 'value']
class HeartrateCheckForm(forms.ModelForm):
class Meta:
model = models.HeartrateCheck
fields = ['date', 'time', 'value']