update django-taggit to 2.0.0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user