Hello, I'm developing a custom admin zone named eadmin, and I hope one day becomes good enough to be part of django. I'm not sure if this group is the right place, or maybe I should post into django-users. As I'm developing using django core features I think this is the right place.
I have a form instance in the var form. for field_name,field_instance in form.fields.iteritems(): if isinstance( field_instance, forms.DateField ): field_instance.widget = AdminDateWidget() -- class AdminDateWidget(forms.TextInput): class Media: js = ('just_testing.js',) def __init__(self, attrs={}): super(AdminDateWidget, self).__init__(attrs={'class': 'DateField'}) -- I took this code from the django newforms-admin branch. I'm not sure if the class Media is a part of the newforms-admin framework or it belongs to newforms. I'd like to load a custom js when use this widget, but the render function of the widget won't render it. I've been studying the code but I still need some help. Can I make it work like this? How can I render the content defined in the Media class? Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---