This commit is contained in:
Rémi Oudin 2018-02-26 16:37:32 +01:00
parent 22fa039f1b
commit 2b07779f5c

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)