<?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: ModelChoiceFields as CharFields in Django</title>
	<atom:link href="http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html</link>
	<description>A blog about Django, JavaScript, CSS, and general web development.</description>
	<lastBuildDate>Fri, 12 Mar 2010 19:46:01 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: OceanTara Code Blog &#187; Blog Archive &#187; use InlineModelChoiceField for hidden foreign key relationships in django</title>
		<link>http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html/comment-page-1#comment-20643</link>
		<dc:creator>OceanTara Code Blog &#187; Blog Archive &#187; use InlineModelChoiceField for hidden foreign key relationships in django</dc:creator>
		<pubDate>Sat, 21 Feb 2009 22:05:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=109#comment-20643</guid>
		<description>[...] http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html" rel="nofollow">http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliott</title>
		<link>http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html/comment-page-1#comment-19637</link>
		<dc:creator>Elliott</dc:creator>
		<pubDate>Wed, 26 Mar 2008 21:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=109#comment-19637</guid>
		<description>That would be AWESOME; thanks for being such a big contributor to OS.</description>
		<content:encoded><![CDATA[<p>That would be AWESOME; thanks for being such a big contributor to OS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html/comment-page-1#comment-19631</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 26 Mar 2008 19:21:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=109#comment-19631</guid>
		<description>I&#039;m using a mootools component, and just a custom view to spit it out. I&#039;m planning out distributing my newfroms utilities here in the near future, which will include some sort of ajax controls.</description>
		<content:encoded><![CDATA[<p>I&#8217;m using a mootools component, and just a custom view to spit it out. I&#8217;m planning out distributing my newfroms utilities here in the near future, which will include some sort of ajax controls.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliott</title>
		<link>http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html/comment-page-1#comment-19630</link>
		<dc:creator>Elliott</dc:creator>
		<pubDate>Wed, 26 Mar 2008 19:13:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=109#comment-19630</guid>
		<description>Thanks for this.  Its almost exactly what I needed.
Any chance that you could enlighten us on the auto complete stack that you are using?</description>
		<content:encoded><![CDATA[<p>Thanks for this.  Its almost exactly what I needed.<br />
Any chance that you could enlighten us on the auto complete stack that you are using?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html/comment-page-1#comment-19616</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 26 Mar 2008 10:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=109#comment-19616</guid>
		<description>get_internal_type() is for model fields only (unrelated to newforms);

I&#039;m actually in need of something similar right now, but I&#039;m not comfortable with using a name string for defining the selection - primarily since I can&#039;t guarantee uniqueness. Instead I&#039;m using a hidden field to pass the id, which the JQuery autocomplete widget from bassistance.de supports nicely using the .result() hook (not sure what you are using of course).</description>
		<content:encoded><![CDATA[<p>get_internal_type() is for model fields only (unrelated to newforms);</p>
<p>I&#8217;m actually in need of something similar right now, but I&#8217;m not comfortable with using a name string for defining the selection &#8211; primarily since I can&#8217;t guarantee uniqueness. Instead I&#8217;m using a hidden field to pass the id, which the JQuery autocomplete widget from bassistance.de supports nicely using the .result() hook (not sure what you are using of course).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html/comment-page-1#comment-19615</link>
		<dc:creator>David</dc:creator>
		<pubDate>Wed, 26 Mar 2008 10:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=109#comment-19615</guid>
		<description>I don&#039;t know much about newforms internals beyond what I&#039;ve hacked out of it, so you may need get_internal_type (but this works).

As for the .filter().get() I think I had it doing .filter()[0:1] at first, so that&#039;s just a slip on my part.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know much about newforms internals beyond what I&#8217;ve hacked out of it, so you may need get_internal_type (but this works).</p>
<p>As for the .filter().get() I think I had it doing .filter()[0:1] at first, so that&#8217;s just a slip on my part.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fidel Ramos</title>
		<link>http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html/comment-page-1#comment-19614</link>
		<dc:creator>Fidel Ramos</dc:creator>
		<pubDate>Wed, 26 Mar 2008 10:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.davidcramer.net/?p=109#comment-19614</guid>
		<description>Very interesting, the flexibility of Django&#039;s newforms doesn&#039;t cease to amaze me.

Is this code intended for trunk? Wouldn&#039;t you need to define get_internal_type()?

Also, is there a good reason to use &lt;code&gt;filter(name=value).get()&lt;/code&gt; instead of &lt;code&gt;get(name=value)&lt;/code&gt;?</description>
		<content:encoded><![CDATA[<p>Very interesting, the flexibility of Django&#8217;s newforms doesn&#8217;t cease to amaze me.</p>
<p>Is this code intended for trunk? Wouldn&#8217;t you need to define get_internal_type()?</p>
<p>Also, is there a good reason to use <code>filter(name=value).get()</code> instead of <code>get(name=value)</code>?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
