GithubHelp home page GithubHelp logo

pyutil / django-admin-autocomplete-all Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 4.0 52 KB

Django admin: Use select2 (autocomplete_fields) everywhere. Implicit is better than explicit. Because it is brief and easy. Plus: gives better context if you try filter the content in autocomplete fields.

License: MIT License

Makefile 9.16% Python 57.96% JavaScript 31.41% HTML 1.48%

django-admin-autocomplete-all's People

Stargazers

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

Watchers

 avatar  avatar

django-admin-autocomplete-all's Issues

autocomplete_all failing in TabularInline with Django 3.2

Have been using autocomplete_all successfully in a Django 2.2 project for over a year.

In migrating to Django 3.2, I cannot get autcomplete_all to work on TabularInlines. The admin page renders, but when I click the autocomplete widget in the inline, I get this in the browser's js console:

Uncaught TypeError: string.replace is not a function [autocomplete_all.js:88:23]

This happens in both Chrome and Firefox. If I replace autocomplete_all's TabularInline with Django's, it works, but of course I lose the autocomplete that my users depend on.

Any thoughts on troubleshooting this?

MongoDB not Working

djongo : 1.3.6
django : 3.2.9
autocomplete-all : 0.6.5
env : win

An ObjectId is used as primary key, but it seems the package always expects an atomic type like PK and fails to give me the initial value

image

in fact, when I have to use a custom filtering I have to transform what he passes me, a string, into an ObjectId
image

With django admin
image

With autocomplete
image

'WSGIRequest' object has no attribute 'is_ajax'

Setting up an autocomplete_all model admin as described in doc's Usage page give an error
AttributeError: 'WSGIRequest' object has no attribute 'is_ajax' for django 4.x

From the release notes of 3.1

The HttpRequest.is_ajax() method is deprecated as it relied on a jQuery-specific way of signifying AJAX calls, while current usage tends to use the JavaScript Fetch API. Depending on your use case, you can either write your own AJAX detection method, or use the new HttpRequest.accepts() method if your code depends on the client Accept HTTP header.

One to One field

How could get_search_results_ajax work with One to One field?

better documentation

Hi, the documentation is poor and confusing, you should use readthedoc.io

Cheers

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.