Coder Social home page Coder Social logo

tkaemming / django-orderable Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 15.0 162 KB

Simple object instance ordering for the Django administration change list. (Currently unmaintained and out of order.)

License: Other

Shell 0.59% JavaScript 19.01% Python 80.40%

django-orderable's People

Contributors

jezdez avatar tkaemming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-orderable's Issues

Reordering inlines triggers 'This field is required error'

Hi,

Here are the steps to reproduce this issue:

  • Run manage-tests.sh runserver
  • Go to admin
  • Add a new book
  • Fill Name, Author, Pages, and 3 chapters
  • Click 'Save and continue editing'
  • Reorder the 3 chapters using drag n drop
  • Leave the 3 empty chapters unchanged
  • "This field is required error" is triggered for the 3 empty chapters

Feel free to tell me if you need more informations.

Empty field in change list

Somehow, in admin change list, order field shows all empty.. so it is like there is order column shown but all empty column. Below is my admin.py code. Other than this, all functions work well though.

What do I have to look into ?

class FaqAdmin(OrderableAdmin, reversion.VersionAdmin, admin.ModelAdmin):        
    date_hierarchy = 'up_date'
    exclude = ('author','from_date','to_date','up_date','order',) 

$ is not a function

Hello, the error reported by firebug in orderable.js line 3 is: $ is not a function

jQuery is loaded by django is available in variable django.jQuery. This is how i do jquery stuff in the admin:

(function($) { $(document).ready(function() {
}); })(django.jQuery)

Maybe orderable should do that too ?

What do you suggest ?

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.