From 16170ef024dfa9a8b336e7f2ef4a5836fb2a5870 Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Fri, 12 Oct 2018 01:39:53 +0200 Subject: [PATCH 1/3] [API/serializers.py] Get rid of Old Fields that doesn't exist anymore --- api/serializers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/serializers.py b/api/serializers.py index 39aab149..d37de6be 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -395,9 +395,10 @@ class GeneralOptionSerializer(NamespacedHMSerializer): class Meta: model = preferences.GeneralOption - fields = ('general_message', 'search_display_page', - 'pagination_number', 'pagination_large_number', - 'req_expire_hrs', 'site_name', 'email_from', 'GTU_sum_up', + fields = ('general_message_fr', 'general_message_en', + 'search_display_page', 'pagination_number', + 'pagination_large_number', 'req_expire_hrs', + 'site_name', 'email_from', 'GTU_sum_up', 'GTU') @@ -420,8 +421,7 @@ class AssoOptionSerializer(NamespacedHMSerializer): class Meta: model = preferences.AssoOption fields = ('name', 'siret', 'adresse1', 'adresse2', 'contact', - 'telephone', 'pseudo', 'utilisateur_asso', 'payment', - 'payment_id', 'payment_pass', 'description') + 'telephone', 'pseudo', 'utilisateur_asso', 'description') class HomeOptionSerializer(NamespacedHMSerializer): From 23351a501dadb38f049beee21670330ce3f36e9d Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Fri, 12 Oct 2018 01:47:32 +0200 Subject: [PATCH 2/3] [API/serializers] Get rid of old 'type_paiement' field in PaiementSerializer --- api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/serializers.py b/api/serializers.py index d37de6be..5ae525db 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -113,7 +113,7 @@ class PaiementSerializer(NamespacedHMSerializer): class Meta: model = cotisations.Paiement - fields = ('moyen', 'type_paiement', 'api_url') + fields = ('moyen', 'api_url') class CotisationSerializer(NamespacedHMSerializer): From e4cd4e3c0a466b2f8156f0658f1c7123baa1473f Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Fri, 12 Oct 2018 01:51:58 +0200 Subject: [PATCH 3/3] [API/serializers] Get rid of old fields in OptionalUserSerializer --- api/serializers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/serializers.py b/api/serializers.py index 5ae525db..b8e617ba 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -359,8 +359,7 @@ class OptionalUserSerializer(NamespacedHMSerializer): class Meta: model = preferences.OptionalUser - fields = ('tel_mandatory', 'user_solde', 'solde_negatif', 'max_solde', - 'min_online_payment', 'gpg_fingerprint', + fields = ('tel_mandatory', 'gpg_fingerprint', 'all_can_create_club', 'self_adhesion', 'shell_default')