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.
|
||||
|
||||
### URL Overview
|
||||
|
||||
```
|
||||
http -a nicoschottelius:$(pass ungleich.ch/nico.schottelius@ungleich.ch) http://localhost:8000
|
||||
```
|
||||
|
||||
### Snapshotting
|
||||
|
||||
```
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue