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