<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: django: How to get model class from model name</title>
	<atom:link href="http://adil.2scomplement.com/2009/06/django-how-to-get-model-class-from-model-class-name/feed/" rel="self" type="application/rss+xml" />
	<link>http://adil.2scomplement.com/2009/06/django-how-to-get-model-class-from-model-class-name/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=django-how-to-get-model-class-from-model-class-name</link>
	<description></description>
	<lastBuildDate>Wed, 18 Aug 2010 21:18:54 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ian J Cottee</title>
		<link>http://adil.2scomplement.com/2009/06/django-how-to-get-model-class-from-model-class-name/comment-page-1/#comment-115095</link>
		<dc:creator>Ian J Cottee</dc:creator>
		<pubDate>Tue, 03 Aug 2010 06:52:34 +0000</pubDate>
		<guid isPermaLink="false">http://adil.2scomplement.com/?p=170#comment-115095</guid>
		<description>Very useful - many thanks</description>
		<content:encoded><![CDATA[<p>Very useful &#8211; many thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ubay Oramas</title>
		<link>http://adil.2scomplement.com/2009/06/django-how-to-get-model-class-from-model-class-name/comment-page-1/#comment-114347</link>
		<dc:creator>Ubay Oramas</dc:creator>
		<pubDate>Wed, 19 May 2010 15:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://adil.2scomplement.com/?p=170#comment-114347</guid>
		<description>Thank you both for the tips :)</description>
		<content:encoded><![CDATA[<p>Thank you both for the tips <img src='http://adil.2scomplement.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adil Saleem</title>
		<link>http://adil.2scomplement.com/2009/06/django-how-to-get-model-class-from-model-class-name/comment-page-1/#comment-113094</link>
		<dc:creator>Adil Saleem</dc:creator>
		<pubDate>Mon, 22 Feb 2010 07:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://adil.2scomplement.com/?p=170#comment-113094</guid>
		<description>Evgeny,

You are quite right and the suggested fix will definitely solve this performance issue...thanks :)</description>
		<content:encoded><![CDATA[<p>Evgeny,</p>
<p>You are quite right and the suggested fix will definitely solve this performance issue&#8230;thanks <img src='http://adil.2scomplement.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evgeny Sizikov</title>
		<link>http://adil.2scomplement.com/2009/06/django-how-to-get-model-class-from-model-class-name/comment-page-1/#comment-112998</link>
		<dc:creator>Evgeny Sizikov</dc:creator>
		<pubDate>Wed, 17 Feb 2010 06:19:51 +0000</pubDate>
		<guid isPermaLink="false">http://adil.2scomplement.com/?p=170#comment-112998</guid>
		<description>If you&#039;re using the Django ContentTypes you&#039;ll be getting a database hit during each model name resolution.

It would be better to use Django API for the task:
{{{
from django.db.models import get_model

# app_name should contain the model&#039;s application name in lower case
# Example: app_name = &quot;myfirstapp&quot;
# Note: model name is case-insensitive
model = get_model(app_name, &quot;MyCoolModel&quot;)
}}}</description>
		<content:encoded><![CDATA[<p>If you&#8217;re using the Django ContentTypes you&#8217;ll be getting a database hit during each model name resolution.</p>
<p>It would be better to use Django API for the task:<br />
{{{<br />
from django.db.models import get_model</p>
<p># app_name should contain the model&#8217;s application name in lower case<br />
# Example: app_name = &#8220;myfirstapp&#8221;<br />
# Note: model name is case-insensitive<br />
model = get_model(app_name, &#8220;MyCoolModel&#8221;)<br />
}}}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Farhan Ahmad</title>
		<link>http://adil.2scomplement.com/2009/06/django-how-to-get-model-class-from-model-class-name/comment-page-1/#comment-110766</link>
		<dc:creator>Farhan Ahmad</dc:creator>
		<pubDate>Wed, 16 Sep 2009 23:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://adil.2scomplement.com/?p=170#comment-110766</guid>
		<description>Pretty cool.  I love the content types framework, it has saved me time in the past.</description>
		<content:encoded><![CDATA[<p>Pretty cool.  I love the content types framework, it has saved me time in the past.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
