8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 07:02:26 +00:00

Merge branch 'Hotfix_API_Delete_Old_Fields_Serializers' into 'dev'

[API/serializers.py] Get rid of Old Fields that doesn't exist anymore

See merge request federez/re2o!331
This commit is contained in:
chirac 2018-10-13 13:18:58 +02:00
commit d93dccb9f8

View file

@ -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):
@ -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')
@ -395,9 +394,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 +420,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):