Allows to speed-up loading of django admin page by loading heavy calculated field in lazy maner - via separate ajax requests.
Project description
django-admin-lazy-load
Allows to speed-up loading of django admin page by loading heavy calculated field in lazy maner - via separate ajax requests
Install
pip install django-admin-lazy-load
- Add
"admin_lazy_load"
toINSTALLED_APPS
- Make sure
django.contrib.staticfiles.finders.AppDirectoriesFinder
is not disabled in your settings.
Usage
from admin_lazy_load import LazyLoadAdminMixin
....
class YourModelAdmin(LazyLoadAdminMixin, ModelAdmin):
...
lazy_loaded_fields = (
'calculated_value'
)
list_display = (
...
'calculated_value_lazy_click'
...
)
def calculated_value(self, obj):
return ...
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
Close
Hashes for django-admin-lazy-load-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3afcf5b2aa4ff2ca3615b9e2d89a622d1378955bfc155e25b45ca9facc2a56bf |
|
MD5 | c60c4a3bbe49e5bd7b1d5ebb20cbb0c2 |
|
BLAKE2b-256 | c2a04571c87aeda0b73974c331f31b4cbd12778379da768fbee9a1f7197bedfa |