mirror of
https://github.com/django/django.git
synced 2025-07-05 18:29:11 +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:
parent
d4c1b55cb2
commit
fb8c2306db
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user