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:
commit
d93dccb9f8
1 changed files with 7 additions and 8 deletions
|
@ -113,7 +113,7 @@ class PaiementSerializer(NamespacedHMSerializer):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = cotisations.Paiement
|
model = cotisations.Paiement
|
||||||
fields = ('moyen', 'type_paiement', 'api_url')
|
fields = ('moyen', 'api_url')
|
||||||
|
|
||||||
|
|
||||||
class CotisationSerializer(NamespacedHMSerializer):
|
class CotisationSerializer(NamespacedHMSerializer):
|
||||||
|
@ -359,8 +359,7 @@ class OptionalUserSerializer(NamespacedHMSerializer):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = preferences.OptionalUser
|
model = preferences.OptionalUser
|
||||||
fields = ('tel_mandatory', 'user_solde', 'solde_negatif', 'max_solde',
|
fields = ('tel_mandatory', 'gpg_fingerprint',
|
||||||
'min_online_payment', 'gpg_fingerprint',
|
|
||||||
'all_can_create_club', 'self_adhesion', 'shell_default')
|
'all_can_create_club', 'self_adhesion', 'shell_default')
|
||||||
|
|
||||||
|
|
||||||
|
@ -395,9 +394,10 @@ class GeneralOptionSerializer(NamespacedHMSerializer):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = preferences.GeneralOption
|
model = preferences.GeneralOption
|
||||||
fields = ('general_message', 'search_display_page',
|
fields = ('general_message_fr', 'general_message_en',
|
||||||
'pagination_number', 'pagination_large_number',
|
'search_display_page', 'pagination_number',
|
||||||
'req_expire_hrs', 'site_name', 'email_from', 'GTU_sum_up',
|
'pagination_large_number', 'req_expire_hrs',
|
||||||
|
'site_name', 'email_from', 'GTU_sum_up',
|
||||||
'GTU')
|
'GTU')
|
||||||
|
|
||||||
|
|
||||||
|
@ -420,8 +420,7 @@ class AssoOptionSerializer(NamespacedHMSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = preferences.AssoOption
|
model = preferences.AssoOption
|
||||||
fields = ('name', 'siret', 'adresse1', 'adresse2', 'contact',
|
fields = ('name', 'siret', 'adresse1', 'adresse2', 'contact',
|
||||||
'telephone', 'pseudo', 'utilisateur_asso', 'payment',
|
'telephone', 'pseudo', 'utilisateur_asso', 'description')
|
||||||
'payment_id', 'payment_pass', 'description')
|
|
||||||
|
|
||||||
|
|
||||||
class HomeOptionSerializer(NamespacedHMSerializer):
|
class HomeOptionSerializer(NamespacedHMSerializer):
|
||||||
|
|
Loading…
Reference in a new issue