Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/o/popcorn_maker-HEAD/popcorn_gallery/reports/views.py   popcorn_maker(Download)
def report_form(request):
    if request.method == 'POST':
        form = ReportForm(request.POST)
        if form.is_valid():
            report = form.save()

src/d/i/Diaphanum-HEAD/reports/views.py   Diaphanum(Download)
 
    if report_form.is_valid():
        report = report_form.save()
        request.session['report_in_creation'] = formset.instance = report
        if formset.is_valid():