3

In my Django changelist there are lots of columns that means there is a scrollbar at the bottom of the list. Is it possible to get a scrollbar to appear at the top so I don't need to scroll down

Thanks

Grant

mozman2
  • 911
  • 1
  • 8
  • 17

2 Answers2

1

The penny dropped thanks to AlexandreS and this is what I did

I used this plugin: https://github.com/avianey/jqDoubleScroll

I coped the code to my js file: js/admin-help.js

In admin in the model class, I have this

class Media:
    js = (
        '//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js', # jquery
        'js/admin-help.js',       # project static folder
    )

Then collectstatic and it looks like it works, as I want too

Thanks

Grant

mozman2
  • 911
  • 1
  • 8
  • 17
0

This is something that you will have to change in your template.

Here is an example of how you can achieve this.

How to override and extend basic Django admin templates?

EDIT: But I am not sure that you can change the template itself.

AlexandreS
  • 645
  • 1
  • 9
  • 17