forked from uncloud/uncloud
- Added PricingPlan Model
- Implement a complete cycle for buying a Matrix Chat Host - Refactor the Payement cycle and stripe related methods
This commit is contained in:
parent
e205d8d07c
commit
b7aa1c6971
81 changed files with 5079 additions and 810 deletions
|
|
@ -3,7 +3,7 @@ from django.db import transaction
|
|||
from .models import *
|
||||
from .selectors import *
|
||||
from .tasks import *
|
||||
|
||||
from django_q.tasks import async_task, result
|
||||
|
||||
@transaction.atomic
|
||||
def create_wireguard_vpn(owner, public_key, network_mask):
|
||||
|
|
@ -60,7 +60,6 @@ def create_wireguard_vpn_tech(owner, public_key, network_mask):
|
|||
server = pool.vpn_server_hostname
|
||||
wg_name = pool.wg_name
|
||||
|
||||
configure_wireguard_server_on_host.apply_async((wg_name, config),
|
||||
queue=server)
|
||||
async_task(configure_wireguard_server_on_host, (wg_name, config), queue=server)
|
||||
|
||||
return vpn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue