-
python3-django-permissionedforms-0.1-1.lbn36.noarch
django-permissionedforms
django-permissionedforms is an extension to Django's forms framework, allowing you to define forms where certain fields are shown or omitted according to the user's permissions.
Installation
Run: pip install django-permissionedforms
Usage
To add permission rules to a basic Django form, subclass permissionedforms.PermissionedForm in place of django.forms.Form and add an inner Meta class:
from permissionedforms import PermissionedForm
class PersonForm(PermissionedForm):
first_name = forms.CharField()
last_name = forms.CharField()
class Meta:
field_permissions = {
'last_name': 'myapp.change_last_name'
}
field_permissions is a dict, mapping field names to permission codenames. For each field listed, that field will only be included in the final form if the user has the specified permission, as defined by the user.has_perm() method. See Django's documentation on custom permissions and programmatically creating permissions f
Located in
LBN
/
…
/
Business
/
BastionLinux 36
-
python3-django-pgjson-0.3.1-1.lbn19.noarch
UNKNOWN
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 19
-
python3-django-pglocks-1.0.1-1.lbn19.noarch
==============
django-pglocks
==============
django-pglocks provides a useful
context manager to manage PostgreSQL advisory locks. It requires Django (tested
with 1.5), PostgreSQL, and (probably) psycopg2.
Advisory Locks
==============
Advisory locks are application-level locks that are acquired and released
purely by the client of the database; PostgreSQL never acquires them on its
own. They ...
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 19
-
python3-django-pglocks-1.0.4-5.lbn36.noarch
Context managers for advisory locks for PostgreSQL.
Python 3 version.
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-django-picklefield-0.3.2-1.lbn19.noarch
.. image:: https://travis-ci.org/gintas/django-picklefield.svg?branch=master
:target: https://travis-ci.org/gintas/django-picklefield
.. image::
https://coveralls.io/repos/gintas/django-
picklefield/badge.svg?branch=master&service=github
:target:
https://coveralls.io/github/gintas/django-picklefield?branch=master
-----
About
-----
**django-picklefield** provides an implementation of a ...
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 19
-
python3-django-picklefield-3.1.0-1.lbn36.noarch
django-picklefield provides an implementation of a pickled object field. Such
fields can contain any picklable objects.
The implementation is taken and adopted from Django snippet #1694 by Taavi
Taijala, which is in turn based on Django snippet #513 by Oliver Beattie.
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-django-pipeline-1.6.8-19.lbn36.noarch
Pipeline is an asset packaging library for Django, providing both CSS
and JavaScript concatenation and compression, built-in JavaScript template
support, and optional data-URI image and font embedding.
This package provides Python 3 build of django-pipeline.
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-django-polymorphic-3.1.0-1.lbn36.noarch
.. image:: Polymorphic Models for Django
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-django-prometheus-2.4.1-1.lbn36.noarch
Django middlewares to monitor your application with Prometheus.io.
Python 3 version.
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36
-
python3-django-pyscss-2.0.2-21.lbn36.noarch
A collection of tools for making it easier to use
pyScss within Django.
This package provides Python 3 build of django-pyscss.
Located in
LBN
/
…
/
Core Linux
/
BastionLinux 36