Export to GitHub

django-modelvcs - SaveMessages.wiki


Introduction

You can add messages to the model VCS entry. e.g.:

``` from modelvcs.messages import add_message

entry = MyModel.objects.get()[0] entry.name = "new name"

add_message(entry, "Added a new name to MyModel entry.")

entry.save() ```

It's possible to add more than one message: Call the add_message function repeatedly. The messages would be merged with: "\n".join(messages)