1
0
mirror of https://github.com/django/django.git synced 2025-07-05 10:19:20 +00:00

magic-removal: Removed unused function parameter in _get_next_or_previous_by_FIELD.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2768 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Luke Plant 2006-04-28 19:40:22 +00:00
parent d4c1b55cb2
commit fb8c2306db

View File

@ -255,7 +255,7 @@ class Model(object):
value = getattr(self, field.attname)
return dict(field.choices).get(value, value)
def _get_next_or_previous_by_FIELD(self, field, is_next, **kwargs):
def _get_next_or_previous_by_FIELD(self, field, is_next):
op = is_next and '>' or '<'
where = '(%s %s %%s OR (%s = %%s AND %s.%s %s %%s))' % \
(backend.quote_name(field.column), op, backend.quote_name(field.column),