On 4/3/08, Chris <[EMAIL PROTECTED]> wrote:
>
>  Can anyone help me with this? It looks like I need to pass in a
>  django_content_type=<article_content_type> to the request context
>  before it gets passed to the middleware for further processing. Any
>  thoughts?

Yes. I think you need to wait more than 30 minutes before you expect a
response. :-)

The request object isn't going to be associated with any Django models
by default. I suspect what you will need to do is use the get_app()
and get_model() functions in django.db.models; these functions access
the Django application cache, and allow you to retrieve a model/app
etc by name. Extract the name of the model of interest from the
request, and obtain the corresponding model using the cache functions.

Yours,
Russ Magee %-)

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