<?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/"
	>

<channel>
	<title>Django foo &#187; meta</title>
	<atom:link href="http://www.djangofoo.com/tag/meta/feed" rel="self" type="application/rss+xml" />
	<link>http://www.djangofoo.com</link>
	<description>Django Tips and Tweaks</description>
	<lastBuildDate>Wed, 18 Aug 2010 09:38:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Change Django Auth Group Ordering</title>
		<link>http://www.djangofoo.com/269/change-django-auth-group-ordering</link>
		<comments>http://www.djangofoo.com/269/change-django-auth-group-ordering#comments</comments>
		<pubDate>Mon, 17 May 2010 19:25:34 +0000</pubDate>
		<dc:creator>Arif Harbott</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[auth models]]></category>
		<category><![CDATA[meta]]></category>

		<guid isPermaLink="false">http://www.djangofoo.com/?p=269</guid>
		<description><![CDATA[Following on from my last post on changing the behaviour of the Django contrib auth models. Another thing you might like to do is to change the default ordering: from django.contrib.auth.models import User User._meta.ordering = ['-email'] or from django.contrib.auth.models import Group Group._meta.ordering = ['-id']]]></description>
			<content:encoded><![CDATA[<p>Following on from my last post on changing the behaviour of the <strong>Django contrib auth models</strong>. Another thing you might like to do is to change the default ordering:</p>
<pre class="brush:python">from django.contrib.auth.models import User
User._meta.ordering = ['-email']
</pre>
<p>or</p>
<pre class="brush:python">from django.contrib.auth.models import Group
Group._meta.ordering = ['-id']
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.djangofoo.com/269/change-django-auth-group-ordering/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Django Auth User Meta</title>
		<link>http://www.djangofoo.com/271/change-django-auth-user-meta</link>
		<comments>http://www.djangofoo.com/271/change-django-auth-user-meta#comments</comments>
		<pubDate>Thu, 29 Apr 2010 13:26:35 +0000</pubDate>
		<dc:creator>Arif Harbott</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[models]]></category>

		<guid isPermaLink="false">http://www.djangofoo.com/?p=271</guid>
		<description><![CDATA[Sometimes it can be helpful to change the default behaviour of the Auth User model or other models built into Django. One use case might be if you want to change the length of the username field in the Auth User model to allow for longer usernames (e.g. an email address). There is a simple [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it can be helpful to change the default behaviour of the <strong>Auth User model</strong> or other models built into Django.<br />
One use case might be if you want to change the length of the username field in the Auth User model to allow for longer usernames (e.g. an email address).</p>
<p>There is a simple way to change the max length attribute:</p>
<pre class="brush:python">from django.contrib.auth.models import User
User._meta.get_field_by_name('username')[0].max_length=75
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.djangofoo.com/271/change-django-auth-user-meta/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

