Saves the current user with an Aldryn Form for DjangoCMS.
Project description
An extension to the Aldryn Forms plugin that adds a Current User form field type. If there is a valid logged-in user session (request.user), that user’s information will be saved along with the form submission.
When you build your form, you can select to save the user’s:
User ID
Username
Email Address
Full Name
Installation
Install via pip:
pip install djangocms-currentuser-field
Add to your INSTALLED_APPS (in settings.py):
INSTALLED_APPS = ( ... 'djangocms-currentuser-field', ... ) # Optional, if you'd like to use a subclass (1:1 relationship) attached # to user for the user id field, specify below CURRENTUSER_FIELD_USER_SUBCLASS = 'staff'
Run migrations:
python manage.py migrate djangocms-current-user
“Current User Field” should now be available as a plugin in the CMS when you build a form!
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
Built Distribution
Close
Hashes for djangocms-currentuser-field-0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d762cc9a2fa2282d9fcf1b7eb0e39769085b8d440e41e875bbffac1d8c6308ea |
|
MD5 | bfb15e129a16cc146a5dac8771bd305a |
|
BLAKE2b-256 | be5b5f1afa6ec67ffa5e2c9d1c589cc8c925d9f317dcb1306ca51f740b340bfe |
Close
Hashes for djangocms_currentuser_field-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bb901017028221dc3abc918146ad61a61b5baefbec0ae23f9a0a23a516d6522 |
|
MD5 | bfb5c6377adae67a9ce0b5fba873c935 |
|
BLAKE2b-256 | aeba177c0ce1764aa0572708489f578c11bde0a175e4dee859d8fe5a36ad1a8a |