Skip to main content
master build https://badge.fury.io/py/dj-extensions.svg https://coveralls.io/repos/github/jahan01/dj-extensions/badge.svg?branch=master https://codecov.io/github/jahan01/dj-extensions/coverage.svg?branch=master Documentation Status Documentation Status http://img.shields.io/badge/license-MIT-brightgreen.svg

Copyright © 2016 Jahan Balasubramaniam

Django Extensions

dj-extensions

Yet another Django extension with set of generic reusable, pluggable mixins

Installation

pip install dj-extensions

Currently includes following Mixins:

  • PermissionsRequiredMixin

  • AjaxOnlyMixin

  • PaginationMixin

  • FilterMixin

Usage:

from dj_extensions.views import PermissionsRequiredMixin, FilterMixin, PaginationMixin

class SomeView(PermissionsRequiredMixin, FilterMixin, PaginationMixin, ListView):
    model                = YourModel
    paginate_by          = 10
    n_list               = 5
    required_permissions = (
                            'app.permission1',
                            'app.permission2',
                           )
    allowed_filters      = {
                            'name': 'emp_name__icontains',
                            'age' : 'age_exact',
                           }

Source code: Find the source code at github repo

Documentation: Find the docs at readthedocs

For different versions:

To install latest version, which will not be available in pypi, run below

pip install --upgrade https://github.com/jahan01/dj-extensions/tree/master

License: MIT

Metadata

Release files for dj-extensions 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dj-extensions 0.1.6
File Size Uploaded Provenance Actions
dj-extensions-0.1.6.zip 7.4 kB Without provenance Details for dj-extensions-0.1.6.zip

Release files / dj-extensions-0.1.6.zip

Download URL dj-extensions-0.1.6.zip
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c68d2da30f8a170b536f8a7cd3bb6168a3289c3716b6891c611216056598720b
BLAKE2b-256 checksum
How to use checksums
6b79d621c368a6ee3bc060b68352564500eef854b403223389a2a5bf19046102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for dj-extensions 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page