Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

Django Form Extensions

Django form extensions implements serveral usefull Field and Widget classes for Django forms.

Installation

Run pip install django-form-extensions

Fields

HoneypotField

Presents an alluring target for robo-spammers. Raises a form error if tampered with.

HTMLField

Whitelist HTML tags, attributes, and styles and return the resulting HTML with illegal items stripped out.

USCurrencyField

Take in all common forms of representing US currency and return a decimal value.

CreditCardField

Only accepts mathmatically correct credit card numbers.

MultiFileField

Allows a single field to take multiple file uploads.

Widgets

DataList

Generates the HTML5 datalist element which is used for autocomplete.

MultiFileInput

Renders <input type="file" multiple="multiple" /> and it's Python value is a list of files.

FileMultiInput

Takes several instances of <input type="file" /> combines them for it's Python value which is a list of files.

ImageInput

Renders a thumbnail of the image before the FileInput widget.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.