<?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 Newforms HiddenInput Values</title>
	<atom:link href="http://coderseye.com/2007/django-newforms-hiddeninput-values.html/feed" rel="self" type="application/rss+xml" />
	<link>http://coderseye.com/2007/django-newforms-hiddeninput-values.html</link>
	<description>Programming is passion made real</description>
	<lastBuildDate>Fri, 09 Dec 2011 00:27:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Steven</title>
		<link>http://coderseye.com/2007/django-newforms-hiddeninput-values.html#comment-252</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Sat, 05 Jan 2008 18:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/django-newforms-hiddeninput-values.html#comment-252</guid>
		<description>It get&#039;s even easier with ModelForms. Just use:

from django import newforms as forms
from django.newforms.models import ModelForm
from models import Bookmark

class BookmarkForm(ModelForm):
    id = forms.IntegerField(required=False, widget=forms.HiddenInput())
    class Meta:
        model = Bookmark

And it all just works.</description>
		<content:encoded><![CDATA[<p>It get&#8217;s even easier with ModelForms. Just use:</p>
<p>from django import newforms as forms<br />
from django.newforms.models import ModelForm<br />
from models import Bookmark</p>
<p>class BookmarkForm(ModelForm):<br />
    id = forms.IntegerField(required=False, widget=forms.HiddenInput())<br />
    class Meta:<br />
        model = Bookmark</p>
<p>And it all just works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://coderseye.com/2007/django-newforms-hiddeninput-values.html#comment-251</link>
		<dc:creator>david</dc:creator>
		<pubDate>Thu, 13 Dec 2007 23:30:36 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/django-newforms-hiddeninput-values.html#comment-251</guid>
		<description>Zigarn hath saved me from much woe. Just what I was looking for! :)</description>
		<content:encoded><![CDATA[<p>Zigarn hath saved me from much woe. Just what I was looking for! <img src='http://coderseye.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zigarn</title>
		<link>http://coderseye.com/2007/django-newforms-hiddeninput-values.html#comment-250</link>
		<dc:creator>Zigarn</dc:creator>
		<pubDate>Sat, 16 Jun 2007 20:00:15 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/django-newforms-hiddeninput-values.html#comment-250</guid>
		<description>You can dynamically define initial value of fields at form creation : http://www.djangoproject.com/documentation/newforms/#dynamic-initial-values

class myForm
  rollid = forms.IntegerField(required=True, widget=forms.HiddenInput())

[...]

form = myForm(initial={&#039;rollid&#039;, roll.id})

And you will get the same.</description>
		<content:encoded><![CDATA[<p>You can dynamically define initial value of fields at form creation : <a href="http://www.djangoproject.com/documentation/newforms/#dynamic-initial-values" rel="nofollow">http://www.djangoproject.com/documentation/newforms/#dynamic-initial-values</a></p>
<p>class myForm<br />
  rollid = forms.IntegerField(required=True, widget=forms.HiddenInput())</p>
<p>[...]</p>
<p>form = myForm(initial={&#8216;rollid&#8217;, roll.id})</p>
<p>And you will get the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rezzrovv</title>
		<link>http://coderseye.com/2007/django-newforms-hiddeninput-values.html#comment-249</link>
		<dc:creator>rezzrovv</dc:creator>
		<pubDate>Thu, 25 Jan 2007 15:43:11 +0000</pubDate>
		<guid isPermaLink="false">http://coderseye.com/2007/django-newforms-hiddeninput-values.html#comment-249</guid>
		<description>I&#039;m loving the newforms too.  thanks for the info.</description>
		<content:encoded><![CDATA[<p>I&#8217;m loving the newforms too.  thanks for the info.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

