On May 9, 4:58 am, nih <steven.bisse...@googlemail.com> wrote:
> I've got a python program that starts up a django web app, I'm trying
> to figure out how to pass values from the program to the web app so
> some fields in the admin add page are automatically populated with
> values from the program, is the only way via url parameters?, I sense
> its a lot more complicated than that :-)

Hi, Steve,

I've overridden render_change_form in the past to add extra context to
a change form for one of my admin classes.  I've pasted a quick
example here: http://dpaste.com/hold/192434/.  This method can be
found in the ModelAdmin base class:
http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py#L605.
Of course, because request is passed to this method, you can access
GET, etc.

-- 
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.

Reply via email to