Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-admin-lazy-load

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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.

  • 0.2.1
  • PyPI
  • Socket score

Maintainers
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

  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 ...

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc