API: Remove deprecated fields on order resource

This commit is contained in:
Raphael Michel
2018-04-25 13:22:21 +02:00
parent a94f416b3c
commit cfafd90f15
2 changed files with 1 additions and 13 deletions

View File

@@ -140,15 +140,12 @@ class OrderSerializer(I18nAwareModelSerializer):
positions = OrderPositionSerializer(many=True)
fees = OrderFeeSerializer(many=True)
downloads = OrderDownloadsField(source='*')
payment_fee = PaymentFeeLegacyField(source='*', attribute='value') # TODO: Remove in 1.9
payment_fee_tax_rate = PaymentFeeLegacyField(source='*', attribute='tax_rate') # TODO: Remove in 1.9
payment_fee_tax_value = PaymentFeeLegacyField(source='*', attribute='tax_value') # TODO: Remove in 1.9
class Meta:
model = Order
fields = ('code', 'status', 'secret', 'email', 'locale', 'datetime', 'expires', 'payment_date',
'payment_provider', 'fees', 'total', 'comment', 'invoice_address', 'positions', 'downloads',
'payment_fee', 'payment_fee_tax_rate', 'payment_fee_tax_value', 'checkin_attention')
'checkin_attention')
class InlineInvoiceLineSerializer(I18nAwareModelSerializer):