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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 043dab7fecafea6d726a658116cf6c2a2a379b047b053e109af411adeb0d3caa |
|
MD5 | af4a2b2a8a1db9dd67ea4729fafe326a |
|
BLAKE2b-256 | 416f4b07ccf9e55bf47fd2cf611c77bac92966eedbfed4efd7399808106fcb70 |