<?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: Custom Actions In Django Admin Object Editor</title>
	<atom:link href="http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/</link>
	<description>Django is for the Aware</description>
	<lastBuildDate>Wed, 08 Sep 2010 09:51:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: FRANCISCO</title>
		<link>http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/comment-page-1/#comment-5742</link>
		<dc:creator>FRANCISCO</dc:creator>
		<pubDate>Tue, 07 Sep 2010 14:04:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.awarelabs.com/?p=75#comment-5742</guid>
		<description>&lt;strong&gt;&lt;blockquote&gt;&lt;a href=&quot;http://cheaptabletsonline.com/&quot; rel=&quot;nofollow&quot;&gt;CheapTabletsOnline.Com. Canadian Health&amp;Care.Best quality drugs.Special Internet Prices.No prescription online pharmacy. No prescription drugs. Order pills online&lt;/a&gt;...&lt;/strong&gt;

Buy:Benicar.Prozac.Lipothin.Lasix.Seroquel.Wellbutrin SR.Cozaar.Aricept.Female Cialis.Acomplia.Zocor.Ventolin.Nymphomax.Buspar.Zetia.Female Pink Viagra.Advair.Lipitor.SleepWell.Amoxicillin....</description>
		<content:encoded><![CDATA[<p><strong><br />
<blockquote><a href="http://cheaptabletsonline.com/" rel="nofollow">CheapTabletsOnline.Com. Canadian Health&amp;Care.Best quality drugs.Special Internet Prices.No prescription online pharmacy. No prescription drugs. Order pills online</a>&#8230;</p></blockquote>
<p></strong></p>
<p>Buy:Benicar.Prozac.Lipothin.Lasix.Seroquel.Wellbutrin SR.Cozaar.Aricept.Female Cialis.Acomplia.Zocor.Ventolin.Nymphomax.Buspar.Zetia.Female Pink Viagra.Advair.Lipitor.SleepWell.Amoxicillin&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hard disk recovery</title>
		<link>http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/comment-page-1/#comment-5081</link>
		<dc:creator>hard disk recovery</dc:creator>
		<pubDate>Mon, 21 Jun 2010 11:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.awarelabs.com/?p=75#comment-5081</guid>
		<description>I agreed with this . I even liked it also.</description>
		<content:encoded><![CDATA[<p>I agreed with this . I even liked it also.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: designer handbags</title>
		<link>http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/comment-page-1/#comment-5060</link>
		<dc:creator>designer handbags</dc:creator>
		<pubDate>Thu, 27 May 2010 09:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.awarelabs.com/?p=75#comment-5060</guid>
		<description>I couldn&#039;t agree more</description>
		<content:encoded><![CDATA[<p>I couldn&#39;t agree more</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sclaughl</title>
		<link>http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/comment-page-1/#comment-4989</link>
		<dc:creator>sclaughl</dc:creator>
		<pubDate>Thu, 25 Feb 2010 03:14:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.awarelabs.com/?p=75#comment-4989</guid>
		<description>Replying to myself...&lt;br&gt;&lt;br&gt;I do wonder if this type of information should be specified on the model like I am doing. It would probably make more sense to specify it on the ModelAdmin. But the way I describe was the first workable way I could find to implement it without touching django core/contrib.&lt;br&gt;&lt;br&gt;--Stuart</description>
		<content:encoded><![CDATA[<p>Replying to myself&#8230;</p>
<p>I do wonder if this type of information should be specified on the model like I am doing. It would probably make more sense to specify it on the ModelAdmin. But the way I describe was the first workable way I could find to implement it without touching django core/contrib.</p>
<p>&#8211;Stuart</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sclaughl</title>
		<link>http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/comment-page-1/#comment-4988</link>
		<dc:creator>sclaughl</dc:creator>
		<pubDate>Thu, 25 Feb 2010 03:03:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.awarelabs.com/?p=75#comment-4988</guid>
		<description>I realize this post is a year and a half old by now, but I just came across it today and found it useful, so thanks for that.&lt;br&gt;&lt;br&gt;In case anyone else stumbles across it like I did, I thought I&#039;d add some info pertaining to Django 1.1. &lt;br&gt;&lt;br&gt;The good news is that in Django 1.1 you can do something like this with no modifications to django core / contrib. Here&#039;s how...&lt;br&gt;&lt;br&gt;Step one remains about the same. Of course you will want to copy the change_form.html into your particular project, rather than modifying the global default change_form template. Here&#039;s the line to add, updated for 1.1...&lt;br&gt;&lt;br&gt;   {% for action in opts.form_actions %} &lt;li&gt;&lt;a href=&quot;../../../{{ action.0 }}/{{ content_type_id }}/{{ object_id }}/&quot; class=&quot;viewsitelink&quot; rel=&quot;nofollow&quot;&gt;{{ action.1 }}&lt;/a&gt;&lt;/li&gt;{% endfor %}&lt;br&gt;&lt;br&gt;Skip steps two and three, as well as the next step, i.e. step one of &#039;Your Custom Handler&#039;. Now open your models.py and locate the model to which you want to add form actions. For that model create a Meta class and give it a form_actions attribute.&lt;br&gt;&lt;br&gt;   class Meta:&lt;br&gt;        form_actions = ((&#039;action_name&#039;, &#039;action_title&#039;), )&lt;br&gt;&lt;br&gt;In order to keep Django from objecting to this new and unfamiliar attribute, include this code near the top of your models.py...&lt;br&gt;&lt;br&gt;   import django.db.models.options as options&lt;br&gt;&lt;br&gt;   options.DEFAULT_NAMES = options.DEFAULT_NAMES + (&#039;form_actions&#039;,)&lt;br&gt;&lt;br&gt;Now update your urls.py as desired and you&#039;re done!&lt;br&gt;&lt;br&gt;   (r&#039;^admin/action_name/(?P&lt;content_type_id&gt;d+)/(?P&lt;object_id&gt;.+)/$&#039;, &#039;myproj.myapp.views.action_view&#039;),&lt;br&gt;&lt;br&gt;HTH,&lt;br&gt;&lt;br&gt;--Stuart</description>
		<content:encoded><![CDATA[<p>I realize this post is a year and a half old by now, but I just came across it today and found it useful, so thanks for that.</p>
<p>In case anyone else stumbles across it like I did, I thought I&#39;d add some info pertaining to Django 1.1. </p>
<p>The good news is that in Django 1.1 you can do something like this with no modifications to django core / contrib. Here&#39;s how&#8230;</p>
<p>Step one remains about the same. Of course you will want to copy the change_form.html into your particular project, rather than modifying the global default change_form template. Here&#39;s the line to add, updated for 1.1&#8230;</p>
<p>   {% for action in opts.form_actions %} &lt;li&gt;<a href="../../../{{ action.0 }}/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink" rel="nofollow">{{ action.1 }}</a>&lt;/li&gt;{% endfor %}</p>
<p>Skip steps two and three, as well as the next step, i.e. step one of &#39;Your Custom Handler&#39;. Now open your models.py and locate the model to which you want to add form actions. For that model create a Meta class and give it a form_actions attribute.</p>
<p>   class Meta:<br />        form_actions = ((&#39;action_name&#39;, &#39;action_title&#39;), )</p>
<p>In order to keep Django from objecting to this new and unfamiliar attribute, include this code near the top of your models.py&#8230;</p>
<p>   import django.db.models.options as options</p>
<p>   options.DEFAULT_NAMES = options.DEFAULT_NAMES + (&#39;form_actions&#39;,)</p>
<p>Now update your urls.py as desired and you&#39;re done!</p>
<p>   (r&#39;^admin/action_name/(?P&lt;content_type_id&gt;d+)/(?P&lt;object_id&gt;.+)/$&#39;, &#39;myproj.myapp.views.action_view&#39;),</p>
<p>HTH,</p>
<p>&#8211;Stuart</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Headshot photography ny</title>
		<link>http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/comment-page-1/#comment-4924</link>
		<dc:creator>Headshot photography ny</dc:creator>
		<pubDate>Sat, 14 Nov 2009 16:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.awarelabs.com/?p=75#comment-4924</guid>
		<description>Thanks alot for the informative post!&lt;br&gt;&lt;br&gt;Have a nice day&lt;br&gt;pamuer ticon&lt;br&gt;______________________________________________</description>
		<content:encoded><![CDATA[<p>Thanks alot for the informative post!</p>
<p>Have a nice day<br />pamuer ticon<br />______________________________________________</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: personal trainers gold coast</title>
		<link>http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/comment-page-1/#comment-4863</link>
		<dc:creator>personal trainers gold coast</dc:creator>
		<pubDate>Sat, 07 Nov 2009 14:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.awarelabs.com/?p=75#comment-4863</guid>
		<description>i have posted your blog on my site&lt;br&gt;&lt;br&gt;Have a nice day&lt;br&gt;james hampe&lt;br&gt;______________________________________________</description>
		<content:encoded><![CDATA[<p>i have posted your blog on my site</p>
<p>Have a nice day<br />james hampe<br />______________________________________________</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AYY88</title>
		<link>http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/comment-page-1/#comment-4819</link>
		<dc:creator>AYY88</dc:creator>
		<pubDate>Fri, 09 Oct 2009 11:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.awarelabs.com/?p=75#comment-4819</guid>
		<description>At the height of his playing career in the NBA, everyone wanted to &quot;Be like Mike&quot; and play basketball like Michael Jordan. Owning a pair of Jordan shoes was one way to try to make that connection.&lt;br&gt;&lt;br&gt;Since Jordan&#039;s retirement in 1999, fans still want to emulate the greatest basketball player ever, and continue buying &lt;a href=&quot;http://www.jordand1.com&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Jordan shoes&lt;/strong&gt;&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>At the height of his playing career in the NBA, everyone wanted to &#8220;Be like Mike&#8221; and play basketball like Michael Jordan. Owning a pair of Jordan shoes was one way to try to make that connection.</p>
<p>Since Jordan&#39;s retirement in 1999, fans still want to emulate the greatest basketball player ever, and continue buying <a href="http://www.jordand1.com" rel="nofollow"><strong>Jordan shoes</strong></a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomovo</title>
		<link>http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/comment-page-1/#comment-4760</link>
		<dc:creator>tomovo</dc:creator>
		<pubDate>Sat, 11 Jul 2009 23:05:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.awarelabs.com/?p=75#comment-4760</guid>
		<description>+1 for this. I would love this to be part of the official django source. Overriding the templates and adding stuff to urls.py seems a bit clunky for something so incredibly useful as this.&lt;br&gt;&lt;br&gt;Thanks a lot for the article.</description>
		<content:encoded><![CDATA[<p>+1 for this. I would love this to be part of the official django source. Overriding the templates and adding stuff to urls.py seems a bit clunky for something so incredibly useful as this.</p>
<p>Thanks a lot for the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Florida News</title>
		<link>http://blog.awarelabs.com/2008/custom-actions-in-django-admin-object-editor/comment-page-1/#comment-4646</link>
		<dc:creator>Florida News</dc:creator>
		<pubDate>Thu, 30 Apr 2009 13:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.awarelabs.com/?p=75#comment-4646</guid>
		<description>Hi...Your post really got me thinking man..... an intelligent piece ,I must say. .....</description>
		<content:encoded><![CDATA[<p>Hi&#8230;Your post really got me thinking man&#8230;.. an intelligent piece ,I must say. &#8230;..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
