Commit 7919a61f authored by Michal Čihař's avatar Michal Čihař

Move profile creation to post save signal

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 2c130acf
......@@ -1032,3 +1032,5 @@ def create_profile_callback(sender, instance, created=False, **kwargs):
instance.groups.add(auto.group)
# Create API token
Token.objects.create(user=instance)
# Create profile
Profile.objects.get_or_create(user=instance)
......@@ -79,8 +79,6 @@ class ViewTestCase(RepoTestCase):
)
group = Group.objects.get(name='Users')
self.user.groups.add(group)
# Create profile for him
Profile.objects.create(user=self.user)
# Create project to have some test base
self.subproject = self.create_subproject()
self.project = self.subproject.project
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment