In case anyone else is trying to figure out how to do this, the
solution I came up with was to put a dictionary of the values into the
request and pass it to the ModelAdmin add_view function

def some_view(request, ... ):
    ...
    values = { 'title': t, 'author': a }
    # make QueryDict mutable
    request.GET = request.GET.copy()
    request.GET.update(values)
    modelAdmin = admin.site._registry[Article]
    return modelAdmin.add_view(request)

It's not ideal because it accesses what really should be a private
variable in admin.site, but it works. If anyone knows of a more
elegant to do this, please let me know.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to