<?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 foreign key default value example</title>
	<atom:link href="http://djangodays.com/2009/05/11/django-foreign-key-default-value-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://djangodays.com/2009/05/11/django-foreign-key-default-value-example/</link>
	<description>A growing collection of all things Django</description>
	<lastBuildDate>Thu, 26 Aug 2010 13:23:11 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: helios</title>
		<link>http://djangodays.com/2009/05/11/django-foreign-key-default-value-example/comment-page-1/#comment-6782</link>
		<dc:creator>helios</dc:creator>
		<pubDate>Fri, 16 Oct 2009 07:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://djangodays.com/?p=97#comment-6782</guid>
		<description>class MyForm:
&quot;&quot;&quot;
meta etc.
&quot;&quot;&quot;
def __init__(self, *args, **kwargs):
        super(MyForm, self).__init__(*args, **kwargs)
	self.fields[&quot;field_name&quot;].initial = MyModel.objects.get(id=1)</description>
		<content:encoded><![CDATA[<p>class MyForm:<br />
&#8220;&#8221;"<br />
meta etc.<br />
&#8220;&#8221;"<br />
def __init__(self, *args, **kwargs):<br />
        super(MyForm, self).__init__(*args, **kwargs)<br />
	self.fields["field_name"].initial = MyModel.objects.get(id=1)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anonymous</title>
		<link>http://djangodays.com/2009/05/11/django-foreign-key-default-value-example/comment-page-1/#comment-3056</link>
		<dc:creator>anonymous</dc:creator>
		<pubDate>Sun, 17 May 2009 10:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://djangodays.com/?p=97#comment-3056</guid>
		<description>models.ForeignKey(Foo, default=1)</description>
		<content:encoded><![CDATA[<p>models.ForeignKey(Foo, default=1)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

