<?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: INSERT or UPDATE in django&#8217;s save() method</title>
	<atom:link href="http://tech.karolzielinski.com/insert-or-update-in-djangos-save-method/feed" rel="self" type="application/rss+xml" />
	<link>http://tech.karolzielinski.com/insert-or-update-in-djangos-save-method</link>
	<description>... because from time to time I&#039;m a web developer, too</description>
	<lastBuildDate>Wed, 28 Jul 2010 10:20:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Karol Zielinski</title>
		<link>http://tech.karolzielinski.com/insert-or-update-in-djangos-save-method/comment-page-1#comment-761</link>
		<dc:creator>Karol Zielinski</dc:creator>
		<pubDate>Wed, 06 Jan 2010 10:46:20 +0000</pubDate>
		<guid isPermaLink="false">http://tech.karolzielinski.com/?p=352#comment-761</guid>
		<description>Sure, you can. However... only if you call save() method by hand. If it&#039;s used by admin panel - you can&#039;t force any parameters. 

I had a problem: I wanted to add information about new articles (added from admin panel) to twitter (automatic adding). I wanted to add it only if it&#039;s new item (and not to add information to twitter if it&#039;s edit). 

So... I had to check it inside the method.</description>
		<content:encoded><![CDATA[<p>Sure, you can. However&#8230; only if you call save() method by hand. If it&#8217;s used by admin panel &#8211; you can&#8217;t force any parameters. </p>
<p>I had a problem: I wanted to add information about new articles (added from admin panel) to twitter (automatic adding). I wanted to add it only if it&#8217;s new item (and not to add information to twitter if it&#8217;s edit). </p>
<p>So&#8230; I had to check it inside the method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Kaplan-Moss</title>
		<link>http://tech.karolzielinski.com/insert-or-update-in-djangos-save-method/comment-page-1#comment-753</link>
		<dc:creator>Jacob Kaplan-Moss</dc:creator>
		<pubDate>Tue, 05 Jan 2010 15:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://tech.karolzielinski.com/?p=352#comment-753</guid>
		<description>Also note you can force an insert or an update with `model.save(force_insert=True)` or `force_update=true` (see http://docs.djangoproject.com/en/1.1/ref/models/instances/#forcing-an-insert-or-update for more details).</description>
		<content:encoded><![CDATA[<p>Also note you can force an insert or an update with `model.save(force_insert=True)` or `force_update=true` (see <a href="http://docs.djangoproject.com/en/1.1/ref/models/instances/#forcing-an-insert-or-update" rel="nofollow">http://docs.djangoproject.com/en/1.1/ref/models/instances/#forcing-an-insert-or-update</a> for more details).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Sutherland</title>
		<link>http://tech.karolzielinski.com/insert-or-update-in-djangos-save-method/comment-page-1#comment-752</link>
		<dc:creator>John Sutherland</dc:creator>
		<pubDate>Tue, 05 Jan 2010 13:27:32 +0000</pubDate>
		<guid isPermaLink="false">http://tech.karolzielinski.com/?p=352#comment-752</guid>
		<description>I would suggest adding *args, and **kwargs to your function definition, and passing them in the call to the super-class&#039;s save:

http://code.djangoproject.com/browser/django/trunk/django/db/models/base.py#L420</description>
		<content:encoded><![CDATA[<p>I would suggest adding *args, and **kwargs to your function definition, and passing them in the call to the super-class&#8217;s save:</p>
<p><a href="http://code.djangoproject.com/browser/django/trunk/django/db/models/base.py#L420" rel="nofollow">http://code.djangoproject.com/browser/django/trunk/django/db/models/base.py#L420</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: INSERT / UPDATE w djangowym save()? - develway.pl - wiadomości dla programistów, wiadomości IT, świeże linki ze świata IT</title>
		<link>http://tech.karolzielinski.com/insert-or-update-in-djangos-save-method/comment-page-1#comment-750</link>
		<dc:creator>INSERT / UPDATE w djangowym save()? - develway.pl - wiadomości dla programistów, wiadomości IT, świeże linki ze świata IT</dc:creator>
		<pubDate>Tue, 05 Jan 2010 12:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://tech.karolzielinski.com/?p=352#comment-750</guid>
		<description>[...] tech.karolzielinski.com       Follow us on Twitter 1,509 śledzących RSS Feed 164 czytelników     INSERT / UPDATE w djangowym save()?     1   głosuj!    Jak rozpoznać, czy metoda save() w djangowym modelu wywołana została w celu [...]</description>
		<content:encoded><![CDATA[<p>[...] tech.karolzielinski.com       Follow us on Twitter 1,509 śledzących RSS Feed 164 czytelników     INSERT / UPDATE w djangowym save()?     1   głosuj!    Jak rozpoznać, czy metoda save() w djangowym modelu wywołana została w celu [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
