<?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"
	>
<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>
	<pubDate>Wed, 20 Aug 2008 15:51:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Elliott</title>
		<link>http://www.davidcramer.net/code/109/modelchoicefields-as-charfields-in-django.html#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-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'm using a mootools component, and just a custom view to spit it out. I'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-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-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'm actually in need of something similar right now, but I'm not comfortable with using a name string for defining the selection - primarily since I can't guarantee uniqueness. Instead I'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 - 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-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't know much about newforms internals beyond what I'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'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-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's newforms doesn't cease to amaze me.

Is this code intended for trunk? Wouldn'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>
