app_name = 'billing'
urlpatterns = [
path('payments/<str:uuid>', views.PaymentHookView.as_view(), name='payments'),
path('payments/test', views.TestPaymentView.as_view(), name='test'),
]
if request.method == 'POST':
form = YourTaskForm(request.POST)
if form.is_valid():
group_task = GroupTasks(owner=form.cleaned_data['owner']) # только добавьте все поля
group_task.save()
under_task=UnderTask(headerTask=group_task, creator=form.cleaned_data['creator']) # добавить все поля
under_task.save()