Opened 7 years ago

Last modified 14 months ago

#27923 new New feature

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

Reported by: David Seddon Owned by:
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 (5)

comment:1 by Tim Graham, 7 years ago

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 by luojiebin, 7 years ago

Owner: changed from nobody to luojiebin
Status: newassigned

comment:3 by luojiebin, 7 years ago

Has patch: set

comment:4 by Tim Graham, 7 years ago

Patch needs improvement: set

comment:5 by Mariusz Felisiak, 14 months ago

Owner: luojiebin removed
Status: assignednew
Note: See TracTickets for help on using tickets.
Back to Top