Django

Code

Ticket #4065 (new)

Opened 2 years ago

Last modified 8 months ago

Ability to disable admin pagination

Reported by: Marek Kubica <pythonmailing@web.de> Assigned to: xian
Milestone: Component: django.contrib.admin
Version: SVN Keywords: nfa-changelist
Cc: pythonmailing@web.de Triage Stage: Someday/Maybe
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Today I needed to disable pagination for Django admin - and ran into trouble, since there is no explicit option to disable it. There is list_per_page but this only controls how many objects are displayed. Its not possible to set it to None because that throws an exception and setting it to 0 creates a ZeroDivisionException which is also not what I wanted. Finally, I set it to sys.maxint, which sure will be enough.

My idea would be to rename this setting (maybe only in newforms-admin not to break backward compatibility) and make None or False the setting for "disable pagination". Of course, this can also be implemented without breakting backwards compatibility, but list_per_page = None sounds odd.

Attachments

Change History

04/21/07 07:54:10 changed by Gary Wilson <gary.wilson@gmail.com>

  • needs_better_patch changed.
  • stage changed from Unreviewed to Design decision needed.
  • needs_tests changed.
  • needs_docs changed.

04/30/07 03:12:54 changed by Marek Kubica <pythonmailing@web.de>

I created a thread on this in the django-developers Google Group, to find a reasonable solution.

09/16/07 14:13:40 changed by ubernostrum

  • owner changed from nobody to xian.

neforms-admin should make this easier; assigning to xian just in case he comes up with some template magic for it.

12/02/07 14:17:05 changed by jacob

  • stage changed from Design decision needed to Someday/Maybe.

03/19/08 14:30:49 changed by jakub_vysoky

  • keywords set to nfa-changelist.

Add/Change #4065 (Ability to disable admin pagination)




Change Properties
Action