update django-taggit to 2.0.0

This commit is contained in:
2022-01-07 15:27:32 +00:00
parent 0f3ed63c2b
commit 92a2700c6a
2 changed files with 5 additions and 3 deletions

View File

@@ -145,8 +145,10 @@ class Post(models.Model):
super().save(*args, **kwargs)
self.tags.set(
*re.findall(r"\#([\d\w-]+)", str(self.subtitle)),
*re.findall(r"\#([\d\w-]+)", str(self.title)),
[
*re.findall(r"\#([\d\w-]+)", str(self.subtitle)),
*re.findall(r"\#([\d\w-]+)", str(self.title)),
]
)
@property