'Convenience method for updating the revision.'

@classmethod
def update_revision(cls, revision):

    (obj, created) = cls.objects.get_or_create(pk=1, defaults=dict(revision=revision))
    if (not created):
        obj.revision = revision
        obj.save()
