django-update-sql

Django UPDATE sql generator


Keywords
django, update, sql
License
Unlicense
Install
pip install django-update-sql==2020.12.21

Documentation

Installation

$ [sudo] pip install django-update-sql

Examples

from django_update_sql import update_sql

qs = Table.objects.filter(pk=42)
kwargs = dict(description='test', action='action')
update_sql(qs, **kwargs) 
UPDATE `api_event` SET `description` = test, `action` = action WHERE pk=42;

readme42.com