straight55b / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

FormWithSets doesen't render media #149

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Model has custom widget which defines class Media within itself
2. Create form via FormWithSets()
eg: 

class AutoCompleteField(TextInput):
    class Media:
        css = {
            'all': ('/media/autocomplete.css',)
        }
        js = (
            '/media/prototype.js',
            '/media/scriptaculous.js',
            '/media/autocomplete.js'
        )

Media is never rendered to page -- when not using FormWithSets() it is
rendered.

Original issue reported on code.google.com by christop...@gmail.com on 24 May 2009 at 2:50

GoogleCodeExporter commented 9 years ago
Does this work if you render the FormSet using custom view code? (i.e. not with 
FormWithSets)

Original comment by norm...@gmail.com on 29 Jun 2009 at 7:34

GoogleCodeExporter commented 9 years ago
I'm not sure that Media is supported by non-admin views, so this would have to 
be a 
feature enhancement, not a defect.

Original comment by norm...@gmail.com on 29 Jun 2009 at 7:38

GoogleCodeExporter commented 9 years ago
django ticket ref: http://code.djangoproject.com/ticket/4418

Original comment by norm...@gmail.com on 29 Jun 2009 at 7:39

GoogleCodeExporter commented 9 years ago
Fixed in repo. There was no media handler in FormWithSetsInstance.

Original comment by wkornew...@gmail.com on 8 Jul 2009 at 2:38