This commit is contained in:
Rémi Oudin 2018-02-26 16:37:32 +01:00 committed by Théophile Bastian
parent 6bc64ceb7a
commit 04270e88c0

View file

@ -97,7 +97,7 @@ class Website(models.Model):
url = random.choice(self.notable_pages.all()).url
elif rand <= 0.8:
search_term_text = self.name + " " + \
random.choice(self.keywords.all())
str(random.choice(self.keywords.all()))
url = user.search_engine.search_url(search_term_text)
else:
url = user.search_engine.search_url(self.name)