Auto load field data on change of other field value in django admin with Ajax call
Requirements
Django 2.0+
Installation
pip install django-indo
Add indo to INSTALLED_APPS:
INSTALLED_APPS = [
...
'indo',
...
]
Example usage
from indo.admin import IndoResponseMixin, IndoSetFieldMixin
@admin.register(Customer)
class CustomerAdmin(IndoResponseMixin, admin.ModelAdmin):
fields = (
'name',
'address',
)
@admin.register(Order)
class OrderAdmin(IndoSetFieldMixin, admin.ModelAdmin):
fields = (
'customer',
'delivery_address',
)
indo_fields = {
'delivery_address': 'customer__address'
}
Metadata
Release files for django-indo 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-indo-1.0.4.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_indo-1.0.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 13.2 kB
Release files / django-indo-1.0.4.tar.gz
| Download URL | django-indo-1.0.4.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52b7ecd598924ac866611fcd50a44d98387604e8bfb82a4dcfe0a39b306f9433
|
|
BLAKE2b-256 checksum How to use checksums |
f724c54b15002476bf6d2c5289d01550dc868618a98342ef88753a50179a0cf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10
|
Release files / django_indo-1.0.4-py2.py3-none-any.whl
| Download URL | django_indo-1.0.4-py2.py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6b91c30ae15594fb7d3c2c6f30e251f60d7cfe8aaec96321a0fffb1190f93c22
|
|
BLAKE2b-256 checksum How to use checksums |
fd1a9c878aa32238f7df87ba45e8d129fe9fc3fac68e2bdf043b109ef23fdb17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10
|