It can be useful to save a new object
This commit is contained in:
parent
adb892ab7d
commit
44cf26df8f
1 changed files with 2 additions and 1 deletions
|
@ -227,7 +227,8 @@ def create_profile(nick=None):
|
||||||
first_name=first_name,
|
first_name=first_name,
|
||||||
last_name=last_name,
|
last_name=last_name,
|
||||||
email=email,
|
email=email,
|
||||||
uses_url=(random.random() < 0.5),
|
uses_urls=(random.random() < 0.5),
|
||||||
)
|
)
|
||||||
profile.search_engine = random.choice(SearchEngine.objects.all())
|
profile.search_engine = random.choice(SearchEngine.objects.all())
|
||||||
profile.browser_fingerprint = random.choice(BrowserFingerprint.objects.all())
|
profile.browser_fingerprint = random.choice(BrowserFingerprint.objects.all())
|
||||||
|
profile.save()
|
||||||
|
|
Loading…
Reference in a new issue