forked from uncloud/uncloud
Properly wire billing addresses to uncloud_service
This commit is contained in:
parent
dd0c1cba94
commit
a49fe6ff51
2 changed files with 27 additions and 9 deletions
|
|
@ -38,6 +38,12 @@ class MatrixServiceProductViewSet(ProductViewSet):
|
|||
def get_queryset(self):
|
||||
return MatrixServiceProduct.objects.filter(owner=self.request.user)
|
||||
|
||||
def get_serializer_class(self):
|
||||
if self.action == 'create':
|
||||
return OrderMatrixServiceProductSerializer
|
||||
else:
|
||||
return MatrixServiceProductSerializer
|
||||
|
||||
@transaction.atomic
|
||||
def create(self, request):
|
||||
# Extract serializer data.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue