Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

Project description

master build 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

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

Release history Release notifications

This version
History Node

0.1.6

History Node

0.1.5.post2

History Node

0.1.5.post1

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
dj-extensions-0.1.6.zip (7.4 kB) Copy SHA256 hash SHA256 Source None Feb 6, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page