From 2b07779f5c059e01d25868314704791fc316daa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Mon, 26 Feb 2018 16:37:32 +0100 Subject: [PATCH] Bug fix --- profiles/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/models.py b/profiles/models.py index 25144e0..63b315e 100644 --- a/profiles/models.py +++ b/profiles/models.py @@ -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)