Exemple #1
0
def rest_service_form_submission(sender, **kwargs):
    
    # So we can be sure that all data is saved 
    # and we can find it once we pass the task
    # on to celery.
    transaction.commit()

    if kwargs.get('created'):
        call_service(kwargs.get('instance'))
Exemple #2
0
def rest_service_form_submission(sender, instance, created, **kwargs):
    if created:
        call_service(instance)
def rest_service_form_submission(sender, **kwargs):
    parsed_instance = kwargs.get('instance')
    created = kwargs.get('created')
    if created:
        call_service(parsed_instance)
Exemple #4
0
def rest_service_form_submission(sender, **kwargs):
    parsed_instance = kwargs.get('instance')
    created = kwargs.get('created')
    if created:
        call_service(parsed_instance)