Django Formset screenshot

Django Formset

Author Avatar Theme by Jrief
Updated: 8 May 2025
375 Stars

The missing widgets and form manipulation library for Django

Categories

Overview:

The django-formset library enhances the user experience for handling single forms and collections of forms in Django by providing better customization and rendering options compared to the internal Django formsets implementation. It offers features such as support for multiple CSS frameworks, various input widgets, asynchronous file uploading, alternatives for select widgets, and customizable button actions.

Features:

  • Support for multiple CSS frameworks: Including Bootstrap 5, Bulma, Foundation 6, Tailwind, and UIkit.
  • Multiple input widgets: Render all widgets provided by Django, including multiple checkboxes and radio selects with various option groups.
  • File uploading widget: Allows asynchronous file uploading with drag-and-drop functionality, file preview, and faster submission.
  • Alternatives for select widgets: Replaces default HTML select widgets with autocomplete options and custom styling for multiple selects.
  • Editable many-to-many relations: Offers widgets for many-to-many relations with source and target options, database querying for large datasets, filtering, redo/undo functionality, sorting, and additional fields.

Installation:

To install the django-formset library, you can use pip:

pip install django-formset

Make sure to add ‘formset’ to your Django project’s installed apps:

INSTALLED_APPS = [
    ...
    'formset',
]

You can now start utilizing the features provided by django-formset to enhance your Django forms and form collections.

Summary:

The django-formset library is a powerful tool for improving the user experience when working with Django forms. By offering customizable rendering options, support for multiple CSS frameworks, various input widgets, asynchronous file uploading, alternatives for select widgets, and enhanced many-to-many relations editing, django-formset provides developers with a versatile solution for creating dynamic and user-friendly forms in Django applications.