Yet another Django extension with set of generic reusable, pluggable mixins
Project description
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
paginated_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 here at github
Documentation: To be done. For now, please refer to the comments in the source code.
License: MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dj-extensions-0.1.5.post1.zip
(7.3 kB
view hashes)