Skip to main content

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

  1. Install via pip:

    pip install djangocms-currentuser-field
  2. Add to your INSTALLED_APPS (in settings.py):

    INSTALLED_APPS = (
    ...
     'djangocms-currentuser-field',
    ...
    )
  3. Run migrations:

    python manage.py migrate djangocms-current-user
  4. “Current User Field” should now be available as a plugin in the CMS when you build a form!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangocms-currentuser-field-0.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

djangocms_currentuser_field-0.1-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page