diff --git a/profiles/models.py b/profiles/models.py index 82d1802..2a4c943 100644 --- a/profiles/models.py +++ b/profiles/models.py @@ -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