Skip to main content

Django admin fk and m2m dynamic choices by providing callback support

Project description

Provide fk and m2m dynamic choices and react to django.contrib.admin edit/add view interaction to update those choices.

============================
django-dynamic-choices changelog
============================

Version 0.1.3, 18 February 2011:
--------------------------------

* added js api to bind FK/M2M admin widget add links to specific fields
* added support for multiple jQuery versions
* fixed an issue with admin dynamic-choices js files not considering settings.(STATIC|MEDIA)_URL. Thanks bmeyer71@github.com
* embed admin choices binder directly in the page
(make sure to extend "admin/dynamic_choices_change_form.html" if you're overriding DynamicAdmin.change|add_form_template)

Version 0.1.2, 5 February 2011:
--------------------------------

* fixed an issue with choices callback with no lookups
* fixed an issue with user defined forms on DynamicAdmin and inlines
* handle 3+ depth descriptors (field__field__...)

Version 0.1.1, 29 December 2010:
--------------------------------

* fixed an issue with formset empty form
* added support for south
* added support for reversion

I'm planing to refactor the code for version 0.2.0 in order to add support for dynamic managers or "model instance managers".
Dynamic choices will be bound to such managers. Data provided will also be wrapped in some class and tuple choices in some kind of QuerysetCollection.
Stay tuned!

Version 0.1.0, 27 December 2010:
--------------------------------

* initial release

At the moment this project is more of a "proof of concept" or exploration in order to find a clever way of adding dynamic model field choices to django.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-dynamic-choices-0.1.3.tar.gz (13.6 kB view details)

Uploaded Source

File details

Details for the file django-dynamic-choices-0.1.3.tar.gz.

File metadata

File hashes

Hashes for django-dynamic-choices-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f500ffa0627abd53e429a9edfb81efa62ac15232d6000abd66694c39fd51cc31
MD5 d5e79828e404151df55db333161a1a20
BLAKE2b-256 845b2045d44bc546b1f61bb6280114fb4b184eb9c832f4d9f7f9efed26ceeb92

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page