mirror of https://github.com/openspug/spug
F 修复通知标题显示错误的问题
parent
a5f6c40617
commit
2626f35833
|
@ -26,7 +26,7 @@ class Notify(models.Model, ModelMixin):
|
|||
created_at = models.CharField(max_length=20, default=human_datetime)
|
||||
|
||||
@classmethod
|
||||
def make_notify(cls, source, title, type, content=None, with_quiet=True):
|
||||
def make_notify(cls, source, type, title, content=None, with_quiet=True):
|
||||
if not with_quiet or time.time() - cache.get('spug:notify_quiet', 0) > 3600:
|
||||
cache.set('spug:notify_quiet', time.time())
|
||||
cls.objects.create(source=source, title=title, type=type, content=content)
|
||||
|
|
Loading…
Reference in New Issue