Merged the queryset-refactor branch into trunk.
[fdr-django.git] / django / db / models / fields / proxy.py
blob31a31e3c3cb272702af4b4e91bab9e597bd2b16c
1 """
2 Field-like classes that aren't really fields. It's easier to use objects that
3 have the same attributes as fields sometimes (avoids a lot of special casing).
4 """
6 from django.db.models import fields
8 class OrderWrt(fields.IntegerField):
9 """
10 A proxy for the _order database field that is used when
11 Meta.order_with_respect_to is specified.
12 """
13 name = '_order'
14 attname = '_order'
15 column = '_order'