Re: Access Model data from a ModelFormset form

2013-03-12 Thread Jim Kalafut
Thanks Tom & C. Kirby for the suggestions. Pulling data off of .instance seems to work fine and is exactly what I'm looking for. Regards, Jim On Tuesday, March 12, 2013 9:28:23 AM UTC-7, Tom Evans wrote: > > On Tue, Mar 12, 2013 at 2:24 PM, Jim Kalafut > wrote: > > Hi,

Re: Access Model data from a ModelFormset form

2013-03-12 Thread Tom Evans
On Tue, Mar 12, 2013 at 2:24 PM, Jim Kalafut wrote: > Hi, > > I often want to use a ModelFormset by showing some editable fields, and then > showing some static data that is from the related model instance. For > example, I want to bulk edit a group of Person object phone

Re: Access Model data from a ModelFormset form

2013-03-12 Thread C. Kirby
I generally do the same thing as you do Jim, it is normally the easiest. There are ways to get the bound value from the form both in the ModelForm Class and in the template (as a template tag). It is easier to do it as a template tag, but you can't use form.as_p, you need to hit each form

Access Model data from a ModelFormset form

2013-03-12 Thread Jim Kalafut
Hi, I often want to use a ModelFormset by showing some editable fields, and then showing some static data that is from the related model instance. For example, I want to bulk edit a group of Person object phone numbers and email address, but I'd also like to show (not edit) the person's name