From 70a4fe4d9008b5f6be753d1130e6d331ba457d6f Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 27 Feb 2020 12:45:54 +0100 Subject: [PATCH] order: serialize all fields --- uncloud/README.md | 6 ++++++ uncloud/uncloud_pay/serializers.py | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/uncloud/README.md b/uncloud/README.md index b1d98a5..390a3af 100644 --- a/uncloud/README.md +++ b/uncloud/README.md @@ -82,6 +82,12 @@ sample values with real values. These APIs can be used for internal testing. +### URL Overview + +``` +http -a nicoschottelius:$(pass ungleich.ch/nico.schottelius@ungleich.ch) http://localhost:8000 +``` + ### Snapshotting ``` diff --git a/uncloud/uncloud_pay/serializers.py b/uncloud/uncloud_pay/serializers.py index be00a0c..130f683 100644 --- a/uncloud/uncloud_pay/serializers.py +++ b/uncloud/uncloud_pay/serializers.py @@ -16,8 +16,7 @@ class PaymentSerializer(serializers.ModelSerializer): class OrderSerializer(serializers.ModelSerializer): class Meta: model = Order - fields = ['owner', 'creation_date', 'starting_date', 'ending_date', - 'bill', 'recurring_price', 'one_time_price', 'recurring_period'] + fields = '__all__' class UserSerializer(serializers.ModelSerializer): class Meta: