Opened 8 months ago

Last modified 8 months ago

#27923 assigned New feature

Add form signals (pre_init, post_init, pre_clean, post_clean, etc.)

Reported by: David Owned by: luojiebin
Component: Forms Version:
Severity: Normal Keywords: forms, signals
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

Adding some signals for forms would allow apps to plug in to other apps and aid encapsulation between apps.

More discussion here: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/django-developers/SviNiWy3Bjc/fqFL8rZvBAAJ

Proposed signals:

  • pre_init
  • post_init
  • pre_clean
  • post_clean

And for ModelForm:

  • pre_save
  • post_save

I'd be happy to do a pull request for this one.

Change History (4)

comment:1 Changed 8 months ago by Tim Graham

Summary: Forms signalsAdd form signals (pre_init, post_init, pre_clean, post_clean, etc.)
Triage Stage: UnreviewedAccepted

Nominally accepted, though as discussed on the mailing list, details remain to be determined.

comment:2 Changed 8 months ago by luojiebin

Owner: changed from nobody to luojiebin
Status: newassigned

comment:3 Changed 8 months ago by luojiebin

Has patch: set

comment:4 Changed 8 months ago by Tim Graham

Patch needs improvement: set
Note: See TracTickets for help on using tickets.
Back to Top