django-grappelli icon indicating copy to clipboard operation
django-grappelli copied to clipboard

Dynamic grappelli dashboard size based on columns from Dashboard class

Open orlra opened this issue 7 years ago • 5 comments

Columns variable was ignored in template. While columns==2 my Django grappelli showed 3 columns and I wanted to make it 4. My solution works with 1,2,3,4,5 columns, any more and longer names will pop up out of boxes. columns use use 23 as bs size as 24 is rounded up to 25 in widthratio template tag.

orlra avatar May 04 '17 11:05 orlra

its single file override so you should be able to merge it to all dev branches.

orlra avatar May 04 '17 11:05 orlra

@orlra Did you target branch dev/2.7.x by purpose? Because it´s pretty outdated — the development branch for the current version is stable/2.9.x.

sehmaschine avatar May 04 '17 12:05 sehmaschine

Ok I see what you meant. I should push it to stable 2.7.x instead ? I just thought dev branch was a test before things go to stable. My project jumps between LTS versions and I need this in 1.8 Django. Thats why I targeted this branch. you should be able to cherry pick it up to all devs branches because from 2.7 nothing changed in this file.

orlra avatar May 04 '17 14:05 orlra

If you with we can merge it to any other branch, But I would like to see it on stable/2.7.x if possible.

orlra avatar May 05 '17 09:05 orlra

@parsch please take a look at this.

sehmaschine avatar Dec 16 '17 09:12 sehmaschine