Solved here: stackoverflow.com/questions/21381096/form-media-not-being-injected-into-a-template
On Sunday, January 26, 2014 11:18:00 PM UTC+1, [email protected] wrote: > > > Hi! I wrote a simple app that is a custom DateField widget. > The widget: > https://dpaste.de/dKjT<https://www.google.com/url?q=https%3A%2F%2Fdpaste.de%2FdKjT&sa=D&sntz=1&usg=AFQjCNFUNMtok8ilUaC3HLmVoGW0G32-8g> > I overextend base.html template to insert form.media: > https://dpaste.de/pYv4<https://www.google.com/url?q=https%3A%2F%2Fdpaste.de%2FpYv4&sa=D&sntz=1&usg=AFQjCNHDxzARb_-1G0kUpPM1F12u54IL-g> > > Now, I create a form for my model class. > Here's the class: > https://dpaste.de/VKB7<https://www.google.com/url?q=https%3A%2F%2Fdpaste.de%2FVKB7&sa=D&sntz=1&usg=AFQjCNEXW-Bhqu3cG_BRtmQP2LeXmm3cCw> > Here's the model form: > https://dpaste.de/ibsu<https://www.google.com/url?q=https%3A%2F%2Fdpaste.de%2Fibsu&sa=D&sntz=1&usg=AFQjCNFXhUZg3RfQGb_yN8zC4C66TpTCLQ> > Here's the view: https://dpaste.de/K3FS > Here's the template: > https://dpaste.de/qUjB<https://www.google.com/url?q=https%3A%2F%2Fdpaste.de%2FqUjB&sa=D&sntz=1&usg=AFQjCNE8ichguYN9aHv4hH8hjpt9kXpc-A> > > Now if I view the form in a browser, the custom widget is there (I can > tell because the input html tag has my custom class attribute value) but it > doesn't inject the form media, it's missing. Any idea what's going on here? > Thanks in advance! Cheers :-) > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
