<?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: Using djangos newforms</title>
	<atom:link href="http://code.pui.ch/2007/01/07/using-djangos-newforms/feed/" rel="self" type="application/rss+xml" />
	<link>http://code.pui.ch/2007/01/07/using-djangos-newforms/</link>
	<description>Random code-snippets and tips</description>
	<lastBuildDate>Tue, 17 Aug 2010 19:16:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: john</title>
		<link>http://code.pui.ch/2007/01/07/using-djangos-newforms/comment-page-2/#comment-39456</link>
		<dc:creator>john</dc:creator>
		<pubDate>Sun, 27 Jul 2008 10:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/01/07/using-djangos-newforms/#comment-39456</guid>
		<description>@ sean,

make sure you inherit from admin.ModelAdmin

class FileAdmin:
  pass # this gives your error

class FileAdmin(admin.ModelAdmin):
  pass</description>
		<content:encoded><![CDATA[<p>@ sean,</p>
<p>make sure you inherit from admin.ModelAdmin</p>
<p>class FileAdmin:<br />
  pass # this gives your error</p>
<p>class FileAdmin(admin.ModelAdmin):<br />
  pass</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sean</title>
		<link>http://code.pui.ch/2007/01/07/using-djangos-newforms/comment-page-2/#comment-28847</link>
		<dc:creator>sean</dc:creator>
		<pubDate>Tue, 27 May 2008 15:53:08 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/01/07/using-djangos-newforms/#comment-28847</guid>
		<description>type object &#039;ProductForm&#039; has no attribute &#039;fields&#039;
why this is happening？</description>
		<content:encoded><![CDATA[<p>type object &#8216;ProductForm&#8217; has no attribute &#8216;fields&#8217;<br />
why this is happening？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://code.pui.ch/2007/01/07/using-djangos-newforms/comment-page-2/#comment-24699</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Sat, 15 Mar 2008 08:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/01/07/using-djangos-newforms/#comment-24699</guid>
		<description>&lt;a&gt;  &lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a>  </a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ghostwheel</title>
		<link>http://code.pui.ch/2007/01/07/using-djangos-newforms/comment-page-2/#comment-18954</link>
		<dc:creator>Ghostwheel</dc:creator>
		<pubDate>Sat, 10 Nov 2007 17:17:36 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/01/07/using-djangos-newforms/#comment-18954</guid>
		<description>Nice tutorial. I&#039;m just starting with Django. Can you please show me what the urlconf looks like for this? 

thanks</description>
		<content:encoded><![CDATA[<p>Nice tutorial. I&#8217;m just starting with Django. Can you please show me what the urlconf looks like for this? </p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philipp.keller</title>
		<link>http://code.pui.ch/2007/01/07/using-djangos-newforms/comment-page-2/#comment-1410</link>
		<dc:creator>philipp.keller</dc:creator>
		<pubDate>Sun, 25 Mar 2007 15:30:47 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/01/07/using-djangos-newforms/#comment-1410</guid>
		<description>Jens: Thanks for the hint. I put the template into the article. About gettext: As I don&#039;t plan to i18n my web application, I won&#039;t use gettext. Additionally: adding gettext to the examples would just add more complexity..

Jay, Baum: Please pose this kind of questions in django-users: http://groups.google.com/group/django-users

Christian: I just updated to the latest version and my code still seems to work.. are you sure?</description>
		<content:encoded><![CDATA[<p>Jens: Thanks for the hint. I put the template into the article. About gettext: As I don&#8217;t plan to i18n my web application, I won&#8217;t use gettext. Additionally: adding gettext to the examples would just add more complexity..</p>
<p>Jay, Baum: Please pose this kind of questions in django-users: <a href="http://groups.google.com/group/django-users" rel="nofollow">http://groups.google.com/group/django-users</a></p>
<p>Christian: I just updated to the latest version and my code still seems to work.. are you sure?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Diemer</title>
		<link>http://code.pui.ch/2007/01/07/using-djangos-newforms/comment-page-2/#comment-695</link>
		<dc:creator>Jens Diemer</dc:creator>
		<pubDate>Thu, 08 Mar 2007 13:31:38 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/01/07/using-djangos-newforms/#comment-695</guid>
		<description>In the model class you should use gettext -&gt; _(&quot;blabla&quot;)

You have posted the template in the comment 18. It&#039;s better you put this in the page above ;)</description>
		<content:encoded><![CDATA[<p>In the model class you should use gettext -&gt; _(&#8220;blabla&#8221;)</p>
<p>You have posted the template in the comment 18. It&#8217;s better you put this in the page above <img src='http://code.pui.ch/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baum</title>
		<link>http://code.pui.ch/2007/01/07/using-djangos-newforms/comment-page-2/#comment-437</link>
		<dc:creator>Baum</dc:creator>
		<pubDate>Thu, 01 Mar 2007 13:24:51 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/01/07/using-djangos-newforms/#comment-437</guid>
		<description>A Question related to Michael Samoylov:
How can I create a form for Models like
class Father:
  name = CharField(maxlength=66)
  son = ForeignKey(Son)

I know its possible to set editable = False but then I won&#039;t have any input-widget for the Son! I want a form to create both: Father and son</description>
		<content:encoded><![CDATA[<p>A Question related to Michael Samoylov:<br />
How can I create a form for Models like<br />
class Father:<br />
  name = CharField(maxlength=66)<br />
  son = ForeignKey(Son)</p>
<p>I know its possible to set editable = False but then I won&#8217;t have any input-widget for the Son! I want a form to create both: Father and son</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay States</title>
		<link>http://code.pui.ch/2007/01/07/using-djangos-newforms/comment-page-2/#comment-195</link>
		<dc:creator>Jay States</dc:creator>
		<pubDate>Fri, 16 Feb 2007 20:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/01/07/using-djangos-newforms/#comment-195</guid>
		<description>Philipp:

How about rendering password input with your widget.  Something like - EntryForm.base_fields[&#039;password&#039;].widget = PasswordInput()??

Thanks in advance,
J</description>
		<content:encoded><![CDATA[<p>Philipp:</p>
<p>How about rendering password input with your widget.  Something like &#8211; EntryForm.base_fields['password'].widget = PasswordInput()??</p>
<p>Thanks in advance,<br />
J</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Joergensen</title>
		<link>http://code.pui.ch/2007/01/07/using-djangos-newforms/comment-page-2/#comment-187</link>
		<dc:creator>Christian Joergensen</dc:creator>
		<pubDate>Thu, 15 Feb 2007 15:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/01/07/using-djangos-newforms/#comment-187</guid>
		<description>In the current version of newforms, I think &#039;base_fields&#039; is renamed to just &#039;fields&#039;.</description>
		<content:encoded><![CDATA[<p>In the current version of newforms, I think &#8216;base_fields&#8217; is renamed to just &#8216;fields&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philipp.keller</title>
		<link>http://code.pui.ch/2007/01/07/using-djangos-newforms/comment-page-2/#comment-180</link>
		<dc:creator>philipp.keller</dc:creator>
		<pubDate>Tue, 13 Feb 2007 16:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://code.pui.ch/2007/01/07/using-djangos-newforms/#comment-180</guid>
		<description>Andrew: if the form isn&#039;t valid, the entry isn&#039;t saved in the db but the form gets drawn again by t.render(c). If a nonvalidating form is rendered, the validation errors are printed inside the form, &lt;a href=&quot;http://www.djangoproject.com/documentation/newforms/#how-errors-are-displayed&quot; rel=&quot;nofollow&quot;&gt;see official documentation&lt;/a&gt;

Mark: exactly: commit=False omits the save() call</description>
		<content:encoded><![CDATA[<p>Andrew: if the form isn&#8217;t valid, the entry isn&#8217;t saved in the db but the form gets drawn again by t.render(c). If a nonvalidating form is rendered, the validation errors are printed inside the form, <a href="http://www.djangoproject.com/documentation/newforms/#how-errors-are-displayed" rel="nofollow">see official documentation</a></p>
<p>Mark: exactly: commit=False omits the save() call</p>
]]></content:encoded>
	</item>
</channel>
</rss>
