Giter Club home page Giter Club logo

Comments (8)

jrief avatar jrief commented on May 30, 2024

Sorry, I had no time yet to migrate to Django-1.7/1.8

From 1.5 to 1.6 Django changed their templates, so I also had to adopt using a modified version of it. I'm not sure if they changed again from 1.6 to 1.7.

A fixing Pull Request is welcomed.

from django-admin-sortable2.

nicholasserra avatar nicholasserra commented on May 30, 2024

Saw this also and ended up manually specifying the fields attr on the admin class.

from django-admin-sortable2.

nicholasserra avatar nicholasserra commented on May 30, 2024

After more digging, I realized that I had my order field on the model as the first editable field. Moving it to the bottom fixed my colspan issues. May still be a bug that can be fixed, but try reordering your fields.

from django-admin-sortable2.

denhartog avatar denhartog commented on May 30, 2024

@jrief,
Thanks for the update. I'll see if I can come up with a fixing pull request.

@nicholasserra,
I tried defining the fields attr in admin with no success. You mean to say the physical order of your field definitions in your model alters the behavior of the admin template?

from django-admin-sortable2.

nicholasserra avatar nicholasserra commented on May 30, 2024

Yes, exactly. The admin fields are ordered based on the field order in the Model. So rearranging them worked for me.

Also, I implemented the Django 1.7 templates with no success. I didn't see any major changes that should affect this.

from django-admin-sortable2.

denhartog avatar denhartog commented on May 30, 2024

@nicholasserra,

Reordering the sort field (I defined mine last) solves the colspan issue. Clearly a bug, but I couldn't quickly identify the cause and am back focused on my project; I'll let @jrief focus on his! :D

from django-admin-sortable2.

rubengrill avatar rubengrill commented on May 30, 2024

Still an issue in Django 1.9, fixed in #107.

from django-admin-sortable2.

jrief avatar jrief commented on May 30, 2024

closed via #107

from django-admin-sortable2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.