# add statistic model in mosquito app
This commit is contained in:
parent
3d7be52923
commit
b73e97f51f
|
@ -41,3 +41,15 @@ class MosqPost(models.Model):
|
||||||
|
|
||||||
def get_api_url(self):
|
def get_api_url(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class MosqPostStatic(models.Model):
|
||||||
|
increment = models.PositiveIntegerField(verbose_name='增量')
|
||||||
|
date = models.DateField(auto_now_add=True, verbose_name='日期')
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
verbose_name = '统计报表'
|
||||||
|
verbose_name_plural = verbose_name
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return '{0}: {1}'.format(self.date, self.increment)
|
Loading…
Reference in New Issue