From 526aad1364d147da3c674e27eca9605abfad9977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Mon, 26 Feb 2018 12:33:23 +0100 Subject: [PATCH] Add interests --- profiles/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profiles/models.py b/profiles/models.py index c8ffea7..82d1802 100644 --- a/profiles/models.py +++ b/profiles/models.py @@ -260,4 +260,6 @@ def create_profile(nick=None): profile.full_clean() profile.save() + profile.interests.add(random.choice(Interest.objects.all())) + profile.save() return profile