fix slugify function for Wishlist objects

This commit is contained in:
Thomas Steen Rasmussen 2020-07-28 23:44:28 +02:00
parent 148149866f
commit 12d9cacc50

View file

@ -50,7 +50,7 @@ class Wish(CampRelatedModel):
def save(self, **kwargs): def save(self, **kwargs):
self.slug = unique_slugify( self.slug = unique_slugify(
self.title, self.name,
slugs_in_use=self.__class__.objects.filter(team=self.team).values_list( slugs_in_use=self.__class__.objects.filter(team=self.team).values_list(
"slug", flat=True "slug", flat=True
), ),