DeprecationWarning in admin, caused by recent changes to pagination
|Reported by:||Nick Efford||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The admin app uses the old
ObjectPaginator class, which triggers
DeprecationWarning as of . The attached patch, against trunk, tweaks admin to use the new API. It seems to work OK as far I as can see, but wiser heads than mine will need to verify :)
Note that this is against trunk, not newforms-admin, as the latter hasn't merged in the new pagination code yet.
Feel free to wontfix if you think we can live with warnings until newforms-admin arrives. In any case, the patch might be useful to newforms-admin devs as the basis of a proper, long-term solution.