Hi Adrian. Many thanks for your reply. As an example, I'll just use polls. Let's say you have:
admin = meta.Admin( fields = ( (None, {'fields': ('pub_date', 'question')}), ), ) and you wanted to two additional input fields like: occupation (text field with label Occupation of 50 characters) gender (combo box with label Gender with choice of male and female) So with the js, I would include poll.js like this: admin = meta.Admin( fields = ( (None, {'fields': ('pub_date', 'question')}), ), js = ('path/to/my/js/poll.js') ) and in my poll.js have script to do document.write for the extra input fields. Is this the general idea? Regards, David Adrian Holovaty wrote: > On 2/17/06, David Pratt <[EMAIL PROTECTED]> wrote: > >>Hi. I have a situation with my admin pages where I need to collect some >>information from admin input fields that are not part of my model. A >>number of fields must be entered and then the data processed first to >>derive a result that is inserted into a field in my model. > > > Hi David, > > I'd suggest using the JavaScript admin hooks -- you can use JavaScript > to dynamically create any sort of HTML widget as needed, which then > alters the input into the format that's expected by the admin site. > See "js" here: > http://www.djangoproject.com/documentation/model_api/#admin-options > > Adrian > > -- > Adrian Holovaty > holovaty.com | djangoproject.com | chicagocrime.org > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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-users -~----------~----~----~----~------~----~------~--~---