0

I am using Django 1.3 and have the following issue:

In the Admin list page, if you have enough objects to result in pagination (more than 100 if you haven't changed ModelAdmin.list_per_page) there is an issue with the actions links, and none of them seem to work.

These links are meant to show how many items you have selected, allow you to select all (through all pages) or clear selection. I am currently getting very weird behaviour and would appreciate any help.

Mbuso
  • 318
  • 2
  • 7
  • 4
    Could please elaborate on the 'weird behavior' that you are getting. – Sandip Agarwal Mar 27 '12 at 11:38
  • Sorry about that. When you click on 'Select all', nothing happens. And when you click on 'Clear selection', again no items are selected, but the background on the items changes to yellow as though they had been selected. I must add that without pagination, there is no issue since these links will not show. – Mbuso Mar 27 '12 at 11:53
  • sounds like messed-up css/js, you may want to check the HTML class of item which should have normal bg but been colored yellow through firebug – okm Mar 27 '12 at 12:19
  • Using Firebug, and seeing if you are getting any js errors (which could be a reason for nothing happening). – rossdavidh Mar 27 '12 at 13:57
  • I do use Firebug and there are no JS errors, which is what is puzzling me at the moment. – Mbuso Mar 27 '12 at 14:26
  • 1
    Does the same page work well with small amounts of data? – ilvar Mar 28 '12 at 02:21
  • 1. Have you simply added the admin manager for the app/model or have you overrode any default methods? 2. Are you taking data directly from DB or is there anything else as intermediate? 3. Could you please provide some screenshots of the whole process, if possible? 4. Please provide some more information as its difficult to catch a mistake. – Sandip Agarwal Mar 28 '12 at 06:14
  • I did restyle the admin and it works fine unless there is pagination. I am going to load a vanilla copy of Django and see if the issue persists. I will also try and make some screen shots and link them up here. 1. No override on methods. 2. Data is taken directly from DB – Mbuso Mar 28 '12 at 08:11

1 Answers1

0

This has been resolved thanks to the suggestions provided above. It was indeed a CSS issue.

Mbuso
  • 318
  • 2
  • 7