def update(self, **kwargs):
        for field, value in kwargs.items():
            setattr(self, field, value)
        self.save(update_fields=list(kwargs.keys()))
Update the particular fields rather than all fields.
dataset/ETHPy150Open schematics/schematics/examples/django/linkify/links/models.py/Link.update