<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Django Gotcha &#8211; Inline Foriegn Key Fields</title>
	<atom:link href="http://seanoc.wordpress.com/2008/01/21/django-gotcha-inline-foriegn-key-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://seanoc.wordpress.com/2008/01/21/django-gotcha-inline-foriegn-key-fields/</link>
	<description>Some words from a simple web develper.</description>
	<lastBuildDate>Wed, 27 May 2009 01:20:32 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: STemplar</title>
		<link>http://seanoc.wordpress.com/2008/01/21/django-gotcha-inline-foriegn-key-fields/#comment-18</link>
		<dc:creator>STemplar</dc:creator>
		<pubDate>Wed, 23 Jan 2008 22:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://seanoc.com/archive/2008/01/21/django-gotcha-inline-foriegn-key-fields/#comment-18</guid>
		<description>Ok, I made some use of that old blog and now there&#039;s a post describing this with a patch for the current newforms-admin branch. http://simonsay.wordpress.com/2008/01/23/hooks-for-m2m-fields-and-inline-formsets-in-django-newforms/</description>
		<content:encoded><![CDATA[<p>Ok, I made some use of that old blog and now there&#8217;s a post describing this with a patch for the current newforms-admin branch. <a href="http://simonsay.wordpress.com/2008/01/23/hooks-for-m2m-fields-and-inline-formsets-in-django-newforms/" rel="nofollow">http://simonsay.wordpress.com/2008/01/23/hooks-for-m2m-fields-and-inline-formsets-in-django-newforms/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean O'Connor</title>
		<link>http://seanoc.wordpress.com/2008/01/21/django-gotcha-inline-foriegn-key-fields/#comment-17</link>
		<dc:creator>Sean O'Connor</dc:creator>
		<pubDate>Mon, 21 Jan 2008 18:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://seanoc.com/archive/2008/01/21/django-gotcha-inline-foriegn-key-fields/#comment-17</guid>
		<description>I am currently working with the newforms-admin branch so I&#039;d be very interested to see your solution.</description>
		<content:encoded><![CDATA[<p>I am currently working with the newforms-admin branch so I&#8217;d be very interested to see your solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: STemplar</title>
		<link>http://seanoc.wordpress.com/2008/01/21/django-gotcha-inline-foriegn-key-fields/#comment-16</link>
		<dc:creator>STemplar</dc:creator>
		<pubDate>Mon, 21 Jan 2008 16:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://seanoc.com/archive/2008/01/21/django-gotcha-inline-foriegn-key-fields/#comment-16</guid>
		<description>As a lot of other people I&#039;ve also come across this problem. I&#039;ve found it possible however to add hooks in newforms to be able to perform stuff after related objects are saved. newforms-admin branch is required to make it work in admin. I should perhaps write about it somewhere..</description>
		<content:encoded><![CDATA[<p>As a lot of other people I&#8217;ve also come across this problem. I&#8217;ve found it possible however to add hooks in newforms to be able to perform stuff after related objects are saved. newforms-admin branch is required to make it work in admin. I should perhaps write about it somewhere..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean O'Connor</title>
		<link>http://seanoc.wordpress.com/2008/01/21/django-gotcha-inline-foriegn-key-fields/#comment-21</link>
		<dc:creator>Sean O'Connor</dc:creator>
		<pubDate>Mon, 21 Jan 2008 14:46:07 +0000</pubDate>
		<guid isPermaLink="false">http://seanoc.com/archive/2008/01/21/django-gotcha-inline-foriegn-key-fields/#comment-21</guid>
		<description>Perhaps, I have tried using the post-save signal and it definitely runs before the children get processed.

Thanks for the feedback!</description>
		<content:encoded><![CDATA[<p>Perhaps, I have tried using the post-save signal and it definitely runs before the children get processed.</p>
<p>Thanks for the feedback!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Bernstein</title>
		<link>http://seanoc.wordpress.com/2008/01/21/django-gotcha-inline-foriegn-key-fields/#comment-20</link>
		<dc:creator>Joel Bernstein</dc:creator>
		<pubDate>Mon, 21 Jan 2008 13:28:09 +0000</pubDate>
		<guid isPermaLink="false">http://seanoc.com/archive/2008/01/21/django-gotcha-inline-foriegn-key-fields/#comment-20</guid>
		<description>I don&#039;t really think signals are going to help.

The issue is that his code is executing after the parent object is saved, but before his child objects are saved, so they&#039;re written right over the top of whatever his code does. From what I can tell from the docs, the &#039;post_save&#039; signal does the same thing.

You could listen for post_save signals from each of the child objects, but then your code runs once for each of them, and there&#039;s no good way to know you&#039;re looking at the last one.

IMHO, the best shot might be to try to hook it into the admin.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t really think signals are going to help.</p>
<p>The issue is that his code is executing after the parent object is saved, but before his child objects are saved, so they&#8217;re written right over the top of whatever his code does. From what I can tell from the docs, the &#8216;post_save&#8217; signal does the same thing.</p>
<p>You could listen for post_save signals from each of the child objects, but then your code runs once for each of them, and there&#8217;s no good way to know you&#8217;re looking at the last one.</p>
<p>IMHO, the best shot might be to try to hook it into the admin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brice Carpentier</title>
		<link>http://seanoc.wordpress.com/2008/01/21/django-gotcha-inline-foriegn-key-fields/#comment-19</link>
		<dc:creator>Brice Carpentier</dc:creator>
		<pubDate>Mon, 21 Jan 2008 11:20:43 +0000</pubDate>
		<guid isPermaLink="false">http://seanoc.com/archive/2008/01/21/django-gotcha-inline-foriegn-key-fields/#comment-19</guid>
		<description>Just thinking out loud, but perhaps you can achieve a good result using signals ?</description>
		<content:encoded><![CDATA[<p>Just thinking out loud, but perhaps you can achieve a good result using signals ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
