jazzband / jazzband/django-floppyforms

Customizable FORMFIELD_OVERRIDES

Open
#116 2 comments 0 reactions 0 assignees View on GitHub
Enhancement
Dominant language
Python
Stars
836
Forks
150
PR merge metrics
No merged PRs in 30d

Description

Would it be useful addition to move default `FORMFIELD_OVERRIDES` and `formfield_callback` to floppyforms.**future**.defaults and allow providing alternate `formfield_callback` function with settings, ie: `FLOPPYFORMS_FORMFIELD_CALLBACK='myapp.formfield_callback'`?

Use case is when user want to customise globally floppyforms fields within modelforms (ie: not to use HTML5 inputs).

If this seems reasonable, I can work on it.

Contributor guide

Open the contributing guide

Research direction

Start by locating FORMFIELD_OVERRIDES and formfield_callback in the repository, then trace how model forms obtain their defaults. Done means defaults are exposed through floppyforms.future.defaults and a setting can select an alternate callback such as myapp.formfield_callback.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.