Questions tagged [django-ajax-selects]

django-ajax-selects is a module for Django which enables editing of ForeignKey, ManyToMany and CharField using jQuery UI Autocomplete.

django-ajax-selects is a module for Django which enables editing of ForeignKey, ManyToMany and CharField using jQuery UI Autocomplete

When user types a search term into the text field an ajax request is sent to the server and a dropdown menu is populated with results. User selects by clicking or using arrow keys. Selected result displays in the "deck" area directly below the input field. User can click trashcan icon to remove a selected item

Features:

  • Django 1.2+
  • Optional bootstrap mode allows easy installation by automatic inclusion of jQueryUI from the googleapis CDN
  • Compatible with staticfiles, appmedia, django-compressor etc
  • Popup to add a new item is supported
  • Admin inlines now supported
  • Ajax Selects works in the admin and also in public facing forms.
  • Rich formatting can be easily defined for the dropdown display and the selected "deck" display.
  • Templates and CSS are fully customizable
  • JQuery triggers enable you to add javascript to respond when items are added or removed, so other interface elements on the page can react
  • Default (but customizable) security prevents griefers from pilfering your data via JSON requests

Projects website:

67 questions
21
votes
2 answers

__init__() got an unexpected keyword argument 'mimetype'

I am using Django 1.7.4 and django_ajax_selects for AutoComplete. The lookup is failing and i get this error: __init__() got an unexpected keyword argument 'mimetype' The complete stack trace is as below. What could i do to resolve this error? Is…
Guddu
  • 1,588
  • 4
  • 25
  • 53
16
votes
2 answers

django-ajax-selects example usage

can anybody post the simplest possible example for django-ajax-selects ? Just one model with a field and a form that can be used to select instances of this model based on that field (not in admin but in a user form). I tried reading the…
Serafeim
  • 14,962
  • 14
  • 91
  • 133
7
votes
2 answers

Custom Dependent Dropdown menu inside the Django admin

I have a project foreign key in by Phase model. I'm having hard time Create a dependent drop-down list inside my Django admin page. I want to when user select a project from (project drop-down) phase of that project show in second dop-down What…
BABZI
  • 119
  • 3
  • 9
4
votes
3 answers

django-ajax-selects app: How do I create a new object when there isn't already one in the database?

I'm using django-ajax-selects, which is a freely available django app providing jquery autocomplete functionality. I've got it working - i.e. it is autocompleting the form fields I want it to. But I have a problem... I'm using it in a ModelForm…
Monika Sulik
  • 16,498
  • 15
  • 50
  • 52
3
votes
1 answer

Display progress bar while an image gallery is loading on django template

I want to display a progress bar (or loading icon) while a image gallery is loading on django template. Image gallery is having a div in the template and for that div only the progress bar should appear. Please refer to…
Vik
  • 57
  • 2
  • 7
3
votes
2 answers

Django - AJAX-SELECT 403 Forbidden

I made a lookup channel, using django-ajax-select, for an field on Model Areas, to use on my ModelForm to select fields when I create or edit a UserProfile. class FormRegisterProfile(forms.ModelForm): class Meta: model = UserProfile …
cleliodpaula
  • 819
  • 2
  • 11
  • 27
2
votes
1 answer

How to change the DropDown display using django ajax-selects in django postman

I am currently using an application named django-postman that makes use of django-ajax-selects to provide autocomplete feature in user names when sending messages internally. The view shown in django-ajax-selects is quite neat, but when I actually…
Sachin
  • 3,672
  • 9
  • 55
  • 96
2
votes
0 answers

jQuery Autocomplete / django-ajax-selects: how to add selected item to a display area, and to allow creating new item?

I want to provide an Autocomplete feature that's similar to the example provided by django-ajax-selects: user types apartment name in a textbox, a list of autocomplete suggestions is provided. Each suggestion includes unique_id, name, image,…
Continuation
  • 12,722
  • 20
  • 82
  • 106
2
votes
0 answers

Filtering Content in Django using ajax

I'm working on a template that renders a list of product. I want the user to filter the content based on the properties of the product. Those are my models : """ Coutries, regions and cities tables """ class Country(models.Model): name =…
GuardianAngel
  • 103
  • 1
  • 7
2
votes
1 answer

How to get Django-Ajax-Selects to work in Django Admin?

Django Ajax Selects Here's what I did, to no avail: Added ajax_select to my INSTALLED_APPS in settings.py Added (r'ajax_select', include('ajax_select.urls')), to urls.py Added this to settings.py: AJAX_LOOKUP_CHANNELS = { 'postal_code':…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
2
votes
1 answer

Using django-cities-light with django-crispy-forms and django-ajax-selects

I need to have a form where user enters name, email and selects a city and country. I am using django-cities-light to populate the database with list of cities and countries. Then, I create a form using django-crispy-forms using the database model…
2
votes
1 answer

Django filter update specific field based on ajax return

I have a ajax post that returns the following data: {u'related_id': u'9', u'db_name': u'my_field', u'name': u'jsaving_draft', u'value': u'hypothesis sadfasdfadfws asdfasdf'} In my view I have: if request.is_ajax(): …
user1462141
  • 252
  • 2
  • 4
  • 14
1
vote
0 answers

POST 500 (Internal Server Error) using AJAX in Django

I hope someone can help me to figure out what I am doing wrong. I am trying to filter the blog articles by tags, so that certain articles are render in all-articles.html when the user clicks on the tag. Any help is appreciated! Below is the error I…
haashe
  • 181
  • 2
  • 11
1
vote
0 answers

django-ajax-selects - How to keep the selected option

I was able to successfully deploy django-ajax-selects. When I search for a value on my form I'm able to find it and "lock" that value on the below "display deck" (that's how it's called in the documentation), save everything as expected when I…
1
vote
1 answer

Django3 Like Ajax Button Book By Antonio Mele

It works but when press like button it coun 2099 instead of 1, after refresh it turn 1..when unlike same problem happend...It counts correctly after refresh....before refresh it count 2099 or 3011 random number I tried some solution from…
Aditta Das
  • 36
  • 3
  • 5
1
2 3 4 5