Skip to main content

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

  1. pip install django-admin-lazy-load
  2. Add "admin_lazy_load" to INSTALLED_APPS
  3. 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 ...

Download files

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

Source Distribution

django-admin-lazy-load-0.2.1.tar.gz (17.5 kB view details)

Uploaded Source

File details

Details for the file django-admin-lazy-load-0.2.1.tar.gz.

File metadata

  • Download URL: django-admin-lazy-load-0.2.1.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for django-admin-lazy-load-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3742830f900710dc2da197409317b967df115df783250987ffcd83d20259912a
MD5 a73b3aa072c6fa94a8a9310a44ad2460
BLAKE2b-256 5ccc5f7ec09a13e365d25bcc2a213f134acb7db024486f33a0d4905d1d7fbbda

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 file

0.2.0

1 file

0.1.1

1 file

0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page