A

Admin • 833.24K Points
Coach

Q. Which method in Django model is called before saving?

  • (A) on_save()
  • (B) before_save()
  • (C) clean()
  • (D) validate()
  • Correct Answer - Option(C)
  • Views: 35
  • Filed under category Django
  • Hashtags:

Explanation by: Admin

`clean()` is called to validate and clean fields before saving.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.