2

I have a application that i exclusively use with the admin.

I would like to send an email every time that a new object is created/modified, from my search, it seems that using the post_save would be the best way.

Unfortunately the doc is not really clear on that...

Can someone explain me > maybe with an example ?

Thanks

Djanux
  • 301
  • 1
  • 4
  • 10

1 Answers1

8

There are two ways. Either override the save function or use signals.

See the following excellent posts:

For a simple similar example using save have a look at my previous answer: Send an e-mail notification when a Django CharField is modified via the admin site

Community
  • 1
  • 1
sunn0
  • 2,918
  • 1
  • 24
  • 25