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/e/h/ehri-collections-HEAD/ehriportal/portal/views.py   ehri-collections(Download)
    def get_formsets(self):
        formsets = {}
        if self.request.method == "POST":
            formsets["contacts"] = forms.ContactFormSet(
                    self.request.POST, self.request.FILES, instance=self.object)
                    self.request.POST, self.request.FILES, instance=self.object)
        else:
            formsets["contacts"] = forms.ContactFormSet(instance=self.object)
            formsets["parallelnames"] = forms.ParallelNameFormSet(instance=self.object)
            formsets["othernames"] = forms.OtherNameFormSet(instance=self.object)