Re: removing fields in modelformset

2009-05-11 Thread Sam Chuparkoff
On Mon, 2009-05-11 at 10:59 -0700, eric.frederich wrote: > Hmm, thats almost what I need. I guess I didn't fully explain what I > need. > I do need to limit the number of fields that are shown, but I also > need to make some of them view only. I don't think this "view only" feature exists. Googl

Re: removing fields in modelformset

2009-05-11 Thread eric.frederich
Hmm, thats almost what I need. I guess I didn't fully explain what I need. I do need to limit the number of fields that are shown, but I also need to make some of them view only. For example, this is on a relation table between an Offering object and a User object called Enrollment. I don't want

Re: removing fields in modelformset

2009-05-11 Thread Sam Chuparkoff
On Mon, 2009-05-11 at 07:55 -0700, eric.frederich wrote: > Hello, > > I need to set up a view for administrators of an application that I am > writing where they can edit a subset of fields on a particular model. > It was pretty simple... > > EnrollmentFormSet = modelformset_factory(Enrollment,

removing fields in modelformset

2009-05-11 Thread eric.frederich
Hello, I need to set up a view for administrators of an application that I am writing where they can edit a subset of fields on a particular model. It was pretty simple... EnrollmentFormSet = modelformset_factory(Enrollment, extra=2) def offering_admin(request, offering_id): offering = get_