Code Monkey home page Code Monkey logo

django-treeadmin's People

Contributors

alesdotio avatar beniwohli avatar deschler avatar evildmp avatar jqb avatar matthiask avatar tobiaghiraldini 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  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

django-treeadmin's Issues

default values

class SkillAdmin(TreeAdmin):
list_per_page = 1000
jquery_use_google_cdn = True
jquery_no_conflict = False

this works... defaults do NOT

Add django 1.7 support

File "/local/lib/python2.7/site-packages/treeadmin/admin.py", line 6, in

from django.utils import simplejson

ImportError: cannot import name simplejson

Deprecation Warning on simplejson

Everytime I run a management task in my Django app, in which I am using django-treeadmin, I get the following Warning on console

/home/stefano/venvs/open_bilanci/local/lib/python2.7/site-packages/treeadmin/admin.py:6: DeprecationWarning: django.utils.simplejson is deprecated; use json instead.
  from django.utils import simplejson

AJAX POST does not include CSRF Token in XHR Headers (Django 1.4)

Upgrading to latest FeinCMS solved the issue for me, however, it turns out this is currently broken in this repository.

Running:
Django 1.4 on Mac OSX 10.7 with django-mptt==0.5.5, latest django-treeadmin, latest grappelli

Reproducing:
Set up TreeAdmin as base of Model's admin class and load up the list page for your model. Moving an object causes a 403 on the POST method. Looks like the XHR expects a relative path, where as I am handing it an absolute path that is still pointing to my local machine. Check toolbox.js in the ajaxSetup function, I think that's where it bugs out.

ajaxSetup call

The $.ajaxSetup function never fires, changing it to treeadmin.jQuery.ajaxSetup resolves the issue.

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.