From 44cf26df8fb70c10b5368a3b52297a5681052f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Mon, 26 Feb 2018 11:42:45 +0100 Subject: [PATCH] It can be useful to save a new object --- profiles/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiles/models.py b/profiles/models.py index ab44199..d4c83d3 100644 --- a/profiles/models.py +++ b/profiles/models.py @@ -227,7 +227,8 @@ def create_profile(nick=None): first_name=first_name, last_name=last_name, email=email, - uses_url=(random.random() < 0.5), + uses_urls=(random.random() < 0.5), ) profile.search_engine = random.choice(SearchEngine.objects.all()) profile.browser_fingerprint = random.choice(BrowserFingerprint.objects.all()) + profile.save()