djangoadminlazyload 0.2.1
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" to INSTALLED_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 ...
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.