<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/">

<channel>
	<title>coolchevy&#039;s blog &#124; Life and experience &#187; django</title>
	<atom:link href="http://coolchevy.org.ua/tag/django/feed/" rel="self" type="application/rss+xml" />
	<link>https://coolchevy.org.ua</link>
	<description>мій особистий блог &#124; нотатки</description>
	<lastBuildDate>Tue, 03 Jan 2012 16:52:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Retrieving elements in a specific order in django</title>
		<link>https://coolchevy.org.ua/2011/12/02/retrieving-elements-in-a-specific-order-in-django/</link>
		<comments>https://coolchevy.org.ua/2011/12/02/retrieving-elements-in-a-specific-order-in-django/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 23:45:48 +0000</pubDate>
		<dc:creator>coolchevy</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[orm]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.coolchevy.org.ua/?p=1018</guid>
		<description><![CDATA[If you have a list of ordered ids and you want to turn them into an ordered result set you can use FIELD() in mysql: SELECT * FROM addons ORDER BY FIELD(id, 3, 5, 9, 1); This is a handy trick if you use an external search engine which gives you an ordered list of [...]]]></description>
		<wfw:commentRss>https://coolchevy.org.ua/2011/12/02/retrieving-elements-in-a-specific-order-in-django/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use custom admin filters in ModelAdmin</title>
		<link>https://coolchevy.org.ua/2011/02/10/use-custom-admin-filters-in-modeladmin/</link>
		<comments>https://coolchevy.org.ua/2011/02/10/use-custom-admin-filters-in-modeladmin/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 22:45:08 +0000</pubDate>
		<dc:creator>coolchevy</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.coolchevy.org.ua/?p=739</guid>
		<description><![CDATA[ModelAdmin now has a lookup_allowed method which is used to either allow a lookup or raise a SuspiciousOperation exception. By default, lookup_allowed whitelists fields in list_filter or date_hierarchy; adding additional fields may be done by a simple subclass: class FooAdmin(ModelAdmin): … def lookup_allowed(self, lookup): # Django 1.2.4 restricted the list of allowed lookups to only [...]]]></description>
		<wfw:commentRss>https://coolchevy.org.ua/2011/02/10/use-custom-admin-filters-in-modeladmin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>django-stdimage traceback &#8220;The &#8216;%s&#8217; attribute has no file associated with it&#8221;</title>
		<link>https://coolchevy.org.ua/2011/02/07/django-stdimage-traceback-the-s-attribute-has-no-file-associated-with-it/</link>
		<comments>https://coolchevy.org.ua/2011/02/07/django-stdimage-traceback-the-s-attribute-has-no-file-associated-with-it/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 20:39:02 +0000</pubDate>
		<dc:creator>coolchevy</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[stdimage]]></category>

		<guid isPermaLink="false">http://www.coolchevy.org.ua/?p=735</guid>
		<description><![CDATA[This traceback happening when you check file to __delete__, but file do not exist on file system My traceback: Traceback (most recent call last): File "/var/www/engine/django/core/handlers/base.py", line 100, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/var/www/engine/lib/decorators.py", line 33, in wrapper output = func(request, *args, **kw) File "/var/www/engine/participants/views.py", line 44, in participants_regform if form.is_valid(): File [...]]]></description>
		<wfw:commentRss>https://coolchevy.org.ua/2011/02/07/django-stdimage-traceback-the-s-attribute-has-no-file-associated-with-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Django admin filter by ranges of ages</title>
		<link>https://coolchevy.org.ua/2011/02/01/django-admin-filter-by-ranges-of-ages/</link>
		<comments>https://coolchevy.org.ua/2011/02/01/django-admin-filter-by-ranges-of-ages/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 00:47:51 +0000</pubDate>
		<dc:creator>coolchevy</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.coolchevy.org.ua/?p=728</guid>
		<description><![CDATA[Adds filtering by ranges of dates birth in the admin filter sidebar class RangeValuesFilterSpec(FilterSpec): def __init__(self, f, request, params, model, model_admin): super(RangeValuesFilterSpec, self).__init__(f, request, params, model, model_admin) self.field_generic = '%s__' % self.field.name self.parsed_params = dict([(k, v) for k, v in params.items() if k.startswith(self.field_generic)]) self.links = [(_('All'), {})] last_value = None for max_value in sorted(f.list_filter_range): max_value [...]]]></description>
		<wfw:commentRss>https://coolchevy.org.ua/2011/02/01/django-admin-filter-by-ranges-of-ages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Django admin filter by ranges of dates with calendar</title>
		<link>https://coolchevy.org.ua/2011/02/01/django-admin-filter-by-ranges-of-dates-with-calendar/</link>
		<comments>https://coolchevy.org.ua/2011/02/01/django-admin-filter-by-ranges-of-dates-with-calendar/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 00:41:11 +0000</pubDate>
		<dc:creator>coolchevy</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.coolchevy.org.ua/?p=718</guid>
		<description><![CDATA[Adds filtering by ranges of dates in the admin filter sidebar. class DateFilterSpec(DateFieldFilterSpec): """ &#xa0;&#xa0;&#xa0;&#xa0;""" def __init__(self, f, request, params, model, model_admin): super(DateFilterSpec, self).__init__(f, request, params, model, model_admin) self.field_generic = '%s__' % self.field.name def title(self): title = super(DateFilterSpec, self).title() form = DateForm(initial=self.params) out = u""" &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#60;style> &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;.calendarbox { &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;/*left:0 !important;*/ &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;z-index:1100; &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;} &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#60;/style> &#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#60;form method="GET" [...]]]></description>
		<wfw:commentRss>https://coolchevy.org.ua/2011/02/01/django-admin-filter-by-ranges-of-dates-with-calendar/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

