lsantos2000 / feedjack

Automatically exported from code.google.com/p/feedjack
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

fjlib.py uses ObjectPaginator instead of Paginator #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The ObjectPaginator utility has been removed completely from the most
modern versions of Django.  In preparation for the official release of
Django 1.0, I would switch to Paginator.  Maybe you could do something like...

{{{
try:
    from django.core.paginator import Paginator
except ImportError:
    from django.core.paginator import ObjectPaginator as Paginator
}}}

...to help maintain a little backwards compatibility.

Original issue reported on code.google.com by wheaties...@gmail.com on 12 Aug 2008 at 8:59