1
|
from django.db import models
|
2
|
from django import forms
|
3
|
|
4
|
class webstatForm(models.Model):
|
5
|
application = models.CharField(max_length=55)
|
6
|
allDate = models.BooleanField(default=True)
|
7
|
startDate = models.DateField()
|
8
|
endDate = models.DateField()
|
9
|
isAccessStat = models.BooleanField(default=True)
|
10
|
isDownStat = models.BooleanField(default=False)
|
11
|
# isGraph = models.BooleanField(default=True,widget=forms.CheckboxInput)
|
12
|
message = forms.CharField(widget=forms.Textarea)
|
13
|
nbElement = models.IntegerField()
|