Author: mtredinnick
Date: 2007-10-13 22:46:07 -0500 (Sat, 13 Oct 2007)
New Revision: 6502

Modified:
   django/branches/queryset-refactor/django/db/models/options.py
Log:
queryset-refactor: Removed Options.get_order_sql(). It has no role to play any
longer.


Modified: django/branches/queryset-refactor/django/db/models/options.py
===================================================================
--- django/branches/queryset-refactor/django/db/models/options.py       
2007-10-14 03:45:53 UTC (rev 6501)
+++ django/branches/queryset-refactor/django/db/models/options.py       
2007-10-14 03:46:07 UTC (rev 6502)
@@ -3,7 +3,6 @@
 from django.db.models.fields.related import ManyToManyRel
 from django.db.models.fields import AutoField, FieldDoesNotExist
 from django.db.models.loading import get_models, app_cache_ready
-from django.db.models.query import orderlist2sql
 from django.db.models import Manager
 from django.utils.translation import activate, deactivate_all, get_language, 
string_concat
 from django.utils.encoding import force_unicode, smart_str
@@ -130,12 +129,6 @@
                 return f
         raise FieldDoesNotExist, '%s has no field named %r' % 
(self.object_name, name)
 
-    def get_order_sql(self, table_prefix=''):
-        "Returns the full 'ORDER BY' clause for this object, according to 
self.ordering."
-        if not self.ordering: return ''
-        pre = table_prefix and (table_prefix + '.') or ''
-        return 'ORDER BY ' + orderlist2sql(self.ordering, self, pre)
-
     def get_add_permission(self):
         return 'add_%s' % self.object_name.lower()
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to