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

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

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