{{ formset.media }} will output the script tags *and* the css link tags
On Feb 22, 11:53 am, anentropic <p...@blues.co.nz> wrote: > A formset should have a 'media' attribute which should include all the > media from the widgets in the forms which make up the formset, so in > the template you should be able to just > {{ name_of_formset_var.media }} in the head of your page to output the > necessary script tags. > > On Feb 17, 3:13 pm, kkerbel <kker...@gmail.com> wrote:> Anybody? :) > > > On Feb 17, 1:19 am, kkerbel <kker...@gmail.com> wrote:> I'm having trouble > > getting AdminDateWidget to show in a formset. Is > > > this possible? I've read and followed every post that mentions how to > > > do this and I even have a page working with the AdminDateWidget, > > > however, it uses a regular form and not a formset. I'm just having > > > trouble getting it to show on a template using a formset. Is there a > > > specific way to specify formset media in the template? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.