From 815a5f274c8d09d9450607de0292b4ed90184e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michele=20Orr=C3=B9?= Date: Sat, 11 Feb 2017 00:21:24 +0100 Subject: [PATCH] Fix some reviewing considerations. - appropriate naming for migration - remove __future__ imports. - remove "CofProfile" left in kfet/models.py --- gestion/tests.py | 6 +----- ...o_20170210_2228.py => 0049_rename_cofprofile_profile.py} | 0 kfet/models.py | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) rename kfet/migrations/{0049_auto_20170210_2228.py => 0049_rename_cofprofile_profile.py} (100%) diff --git a/gestion/tests.py b/gestion/tests.py index ce7fe83b..d12725c4 100644 --- a/gestion/tests.py +++ b/gestion/tests.py @@ -5,16 +5,12 @@ when you run "manage.py test". Replace this with more appropriate tests for your application. """ - -from __future__ import division -from __future__ import print_function -from __future__ import unicode_literals - from django.db.utils import IntegrityError from django.test import TestCase from gestion.models import Profile, User + def create_profile(username): """ In order to create a profile, I need to create a User first. diff --git a/kfet/migrations/0049_auto_20170210_2228.py b/kfet/migrations/0049_rename_cofprofile_profile.py similarity index 100% rename from kfet/migrations/0049_auto_20170210_2228.py rename to kfet/migrations/0049_rename_cofprofile_profile.py diff --git a/kfet/models.py b/kfet/models.py index 93486073..cff60e84 100644 --- a/kfet/models.py +++ b/kfet/models.py @@ -152,9 +152,9 @@ class Account(models.Model): # Surcharge Méthode save() avec gestions de User et Profile # Args: - # - data : datas pour User et CofProfile + # - data : datas pour User et Profile # Action: - # - Enregistre User, CofProfile à partir de "data" + # - Enregistre User, Profile à partir de "data" # - Enregistre Account def save(self, data = {}, *args, **kwargs): if self.pk and data: