forked from uncloud/uncloud
Return product_order object after creation
This commit is contained in:
parent
ee3b20227e
commit
72f47dec7c
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ def order_product(product, timeframe, formdata):
|
|||
resource = get_object_or_404(Resource, slug=res)
|
||||
ro = ResourceOrder.objects.create(value=value, resource=resource)
|
||||
po.resources.add(ro)
|
||||
return po
|
||||
|
||||
# Ordering without a timeframe
|
||||
# if not timeframe:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue