It can be useful to save a new object

This commit is contained in:
Rémi Oudin 2018-02-26 11:42:45 +01:00
parent adb892ab7d
commit 44cf26df8f
1 changed files with 2 additions and 1 deletions

View File

@ -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()