@classmethod
    def update_timestamp(cls, sender, document, **kwargs):
        # It won't work with update().
        #
        # See http://stackoverflow.com/a/12248318/386210 and
        # https://github.com/MongoEngine/mongoengine/issues/21
        document.updated = datetime.now()


# Models
Adds a new element at the end of the list and returns it. Keyword
dataset/ETHPy150Open openelections/openelections-core/openelex/models.py/TimestampMixin.update_timestamp--crossover with--dataset/ETHPy150Open sklearn-theano/sklearn-theano/sklearn_theano/externals/google/protobuf/internal/containers.py/RepeatedCompositeFieldContainer.add