I have models with custom save methods.
def save(self, force_insert=False, force_update=False):
self.body_html = markdown(self.body)
super(News, self).save(force_insert, force_update)
I can add news nae bother and everything is fine until I decide to alter the data in an existing object.
I make the change and hit save and am told that
“The news “The best news” was changed successfully.”
However, it most certainly was not and the data stays the same as it was before the changes.
What am I forgetting or doing wrong?
Thanks in advance.
I think this is to do with this:
in the admin.py.