Here is an example snippet that shows a good use for the save method. It basically takes data from the submitted form, and then adds additional information behind the scenes.
#Model class Foo(models.Model): field_one = models.CharField(max_length=10) field_two = models.CharField(max_length=10) field_three = models.CharField(max_length=10)
Here's the Django Docs with more info on save () and commit = False
As an aside - I just realized that if you add a static line to the model, for example, using my example, you are doing it wrong. But the idea is haha.
j_syk source share