As an update:

Since you can actually assign a generic relation in the admin app to a
proxy model object, when using a generic relation, the proxy objects
aren't returned because the lookup is using get_for_model which
returns an instance of the base class.  (I only figured this out after
having wrapped the ContentType get_by_natural_key call).  I'm
wondering what other implications there are if I continue to use the
get_by_natural_key as a way to get the proxy content type.


On Feb 16, 10:05 pm, Ryan <ryanka...@gmail.com> wrote:
> In django/contrib/contenttypes/models.py (get_for_model), I noticed
> that for a proxy model object, thecontenttypebeing returned is of
> the base concrete class since it sets opts to the _meta of
> proxy_for_model .  If one uses a generic relation in the admin app,
> you can set the genericcontenttypeto that of a proxy model class.  I
> was just wondering if thecontenttypeget_for_model call is returning
> the correct type (concrete base class)?

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