Did I find the right examples for you? yes no

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/d/j/django-baseclasses-HEAD/baseclasses/models.py   django-baseclasses(Download)
 
from fields import ConstrainedImageField
from util import next_or_prev_in_order
 
 
    def get_prev(self):
        return next_or_prev_in_order(self, True, self.__class__.objects)
 
    def get_next(self):
        return next_or_prev_in_order(self, False, self.__class__.objects)
    def get_prev(self, qs=None):
        return next_or_prev_in_order(self, True, qs or self.__class__.objects)
 
    def get_next(self, qs=None):
        return next_or_prev_in_order(self, False, qs or self.__class__.objects)