This commit is contained in:
Rémi Oudin 2018-02-26 13:59:34 +01:00
parent 33bdae96e4
commit db067e56fc
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class Website(models.Model):
""" Generates the url in case the interest chosen is a website.
"""
rand = random.random()
if user.uses_url:
if user.uses_urls:
url = self.url
elif rand <= 0.1:
url = random.choice(self.notable_pages).url