django_prbac Package¶
django_prbac
Package¶
admin
Module¶
arbitrary
Module¶
decorators
Module¶
fields
Module¶
-
class
django_prbac.fields.
StringListField
(verbose_name=None, name=None, primary_key=False, max_length=None, unique=False, blank=False, null=False, db_index=False, rel=None, default=<class 'django.db.models.fields.NOT_PROVIDED'>, editable=True, serialize=True, unique_for_date=None, unique_for_month=None, unique_for_year=None, choices=None, help_text='', db_column=None, db_tablespace=None, auto_created=False, validators=(), error_messages=None)[source]¶ Bases:
django.db.models.fields.TextField
A Django field for lists of strings
-
get_prep_value
(value)[source]¶ Converts the value, which must be a string list, to a comma-separated string, quoted appropriately. This format is private to the field type so it is not exposed for customization or any such thing.
-
-
class
django_prbac.fields.
StringSetField
(verbose_name=None, name=None, primary_key=False, max_length=None, unique=False, blank=False, null=False, db_index=False, rel=None, default=<class 'django.db.models.fields.NOT_PROVIDED'>, editable=True, serialize=True, unique_for_date=None, unique_for_month=None, unique_for_year=None, choices=None, help_text='', db_column=None, db_tablespace=None, auto_created=False, validators=(), error_messages=None)[source]¶ Bases:
django_prbac.fields.StringListField
A Django field for set of strings.
-
get_prep_value
(value)[source]¶ Converts the value, which must be a string list, to a comma-separated string, quoted appropriately. This format is private to the field type so it is not exposed for customization or any such thing.
-
mock_settings
Module¶
Settings just for running the django-prbac tests or checking out the admin site.