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) super().save(*args, **kwargs)
self.tags.set( self.tags.set(
[
*re.findall(r"\#([\d\w-]+)", str(self.subtitle)), *re.findall(r"\#([\d\w-]+)", str(self.subtitle)),
*re.findall(r"\#([\d\w-]+)", str(self.title)), *re.findall(r"\#([\d\w-]+)", str(self.title)),
]
) )
@property @property

View File

@@ -5,7 +5,7 @@ django-environ==0.8.1
django-filter==21.1 django-filter==21.1
django-static-jquery-ui==1.12.1.1 django-static-jquery-ui==1.12.1.1
django-softhyphen==1.1.0 django-softhyphen==1.1.0
django-taggit==1.4.0 django-taggit==2.0.0
djangorestframework==3.12.4 djangorestframework==3.12.4
configparser==5.0.2 configparser==5.0.2
docutils==0.17.1 docutils==0.17.1