Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/m/o/moztrap-HEAD/moztrap/view/manage/environments/views.py   moztrap(Download)
            else:
                env = model.Environment.objects.create(
                    profile=profile, user=request.user)
                env.elements.add(*element_ids)
 
                    request, "Please select some environment elements.")
            else:
                env = model.Environment.objects.create(user=request.user)
                env.elements.add(*element_ids)
                productversion.add_envs(env)