diff -r 57b4279d8c4e -r 03e267d67478 app/django/db/models/fields/proxy.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/django/db/models/fields/proxy.py Fri Jul 18 18:22:23 2008 +0000 @@ -0,0 +1,16 @@ +""" +Field-like classes that aren't really fields. It's easier to use objects that +have the same attributes as fields sometimes (avoids a lot of special casing). +""" + +from django.db.models import fields + +class OrderWrt(fields.IntegerField): + """ + A proxy for the _order database field that is used when + Meta.order_with_respect_to is specified. + """ + name = '_order' + attname = '_order' + column = '_order' +