def save_form(self, request, form, change):
    'Here we pluck out the data to create a new cloned repo.\n\n           Form is an instance of NewRepoForm.\n        '
    name = form.cleaned_data['name']
    origin_url = form.cleaned_data['origin_url']
    res = ClonedRepo(name=name, origin=origin_url)
    LOG.info(('New repo form produced %s' % str(res)))
    form.save(commit=False)
    return res
Here we pluck out the data to create a new cloned repo.

Form is an instance of NewRepoForm.
def save_form(self, request, form, change):
    'Here we pluck out the data to create a new cloned repo.\n\n           Form is an instance of NewRepoForm.\n        '
    name = form.cleaned_data['name']
    origin_url = form.cleaned_data['origin_url']
    res = ClonedRepo(name=name, origin=origin_url)
    LOG.info(('New repo form produced %s' % str(res)))
    form.save(commit=False)
    return res