Re: How do add ancillary, display-only data to each form in a formset?

2011-07-23 Thread Stephen Burrows
This post seems to be squarely in django-users territory, not django- developers. Perhaps the discussion could continue there? On Jul 22, 9:25 pm, Andre Terra wrote: > I'm on my phone, and therefore read your message really quickly, so > excuse me if I misunderstood the

Re: How do add ancillary, display-only data to each form in a formset?

2011-07-22 Thread Andre Terra
I'm on my phone, and therefore read your message really quickly, so excuse me if I misunderstood the issue. A few questions: * Have you considered using a custom widget for the form? * What does the ancillary data look like? * Could you paste the relevant model, form and view? I find it easier

Re: How do add ancillary, display-only data to each form in a formset?

2011-07-22 Thread Shawn Milochik
Instead of a formset, you can just put a bunch of forms in a list and iterate through them. Why not use a ModelForm and just add your extra fields to it? Also, there's nothing stopping you from adding an attribute to your model instances in your form. Then you can iterate through the objects

How do add ancillary, display-only data to each form in a formset?

2011-07-22 Thread Chris Cogdon
I think I did my due google diligence (googlence?) on this one, and came up short. I'm trying to pass some ancillary, read-only information along with each element in a formset. Ie, Along with the stuff that can be changed by the user, I'd like some stuff that can-NOT be changed. Not all, but