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


  1. Install via pip:

    pip install djangocms-currentuser-field
  2. Add to your INSTALLED_APPS (in

    # Optional, if you'd like to use a subclass (1:1 relationship) attached
    # to user for the user id field, specify below
    # Optional, if you'd like to specify a custom fields off the user or
    # sub-user class, set a list of tuples:
        ('canvote', 'Voting Status')
  3. Run migrations:

    python 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.

Files for djangocms-currentuser-field, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size djangocms_currentuser_field-0.4-py2-none-any.whl (12.4 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size djangocms-currentuser-field-0.4.tar.gz (9.2 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page