forked from uncloud/uncloud
order: serialize all fields
This commit is contained in:
parent
e89fb45f9c
commit
70a4fe4d90
2 changed files with 7 additions and 2 deletions
|
@ -82,6 +82,12 @@ sample values with real values.
|
||||||
|
|
||||||
These APIs can be used for internal testing.
|
These APIs can be used for internal testing.
|
||||||
|
|
||||||
|
### URL Overview
|
||||||
|
|
||||||
|
```
|
||||||
|
http -a nicoschottelius:$(pass ungleich.ch/nico.schottelius@ungleich.ch) http://localhost:8000
|
||||||
|
```
|
||||||
|
|
||||||
### Snapshotting
|
### Snapshotting
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -16,8 +16,7 @@ class PaymentSerializer(serializers.ModelSerializer):
|
||||||
class OrderSerializer(serializers.ModelSerializer):
|
class OrderSerializer(serializers.ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Order
|
model = Order
|
||||||
fields = ['owner', 'creation_date', 'starting_date', 'ending_date',
|
fields = '__all__'
|
||||||
'bill', 'recurring_price', 'one_time_price', 'recurring_period']
|
|
||||||
|
|
||||||
class UserSerializer(serializers.ModelSerializer):
|
class UserSerializer(serializers.ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in a new issue