On 11/3/06 3:48 PM, Rob Hudson wrote:
> That way, any model I have will have that method available to easily and
> quickly get its content type.

Try this::

        from innovate.innovation.models import Innovation
        from django.contrib.contenttypes.models import ContentType
        
        i = Innovation.objects.get(id=1)
        ct = ContentType.objects.get_for_model(i)

Jacob

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to