fix
This commit is contained in:
@@ -28,7 +28,7 @@ class OrderSerializer(serializers.ModelSerializer):
|
|||||||
model = Order
|
model = Order
|
||||||
fields = [
|
fields = [
|
||||||
'id', 'order_number', 'total_price', 'user', 'payment_type', 'delivery_type',
|
'id', 'order_number', 'total_price', 'user', 'payment_type', 'delivery_type',
|
||||||
'delivery_price', 'contact_number', 'address', 'comment', 'name', 'items'
|
'delivery_price', 'contact_number', 'address', 'comment', 'name', 'items', 'created_at'
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_user(self, obj):
|
def get_user(self, obj):
|
||||||
|
|||||||
Reference in New Issue
Block a user