kopia lustrzana https://github.com/jointakahe/takahe
use post id to generate summary class
rodzic
79e1f0da14
commit
14b3dc0dc2
|
@ -436,7 +436,7 @@ class Post(StatorModel):
|
|||
"""
|
||||
if not self.summary:
|
||||
return ""
|
||||
return "summary-" + hashlib.md5(self.summary.encode("utf8")).hexdigest()
|
||||
return "summary-{self.id}"
|
||||
|
||||
@property
|
||||
def stats_with_defaults(self):
|
||||
|
|
Ładowanie…
Reference in New Issue