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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6bc892371f475350ef73a09132f2708aa4a535634d8d060e1491a507880cc1f |
|
MD5 | 63b0d6bd9e5c594a2a546a66b5be9121 |
|
BLAKE2b-256 | 73c2ec3a9c62415ea03641e557bb57481212a440f612fcf474765b574dc01cc2 |
Close
Hashes for djangocms_currentuser_field-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33da47e90517ff7fae4929e2856b1bd34b5cd9dd3973873c2961fbea9374fd6d |
|
MD5 | 8cb02ef473f0790ec742d53469056d72 |
|
BLAKE2b-256 | 9eebb0c7923894db5d22e1caa733ea25e9264faaabe31e6a86b38121064f4b89 |