Update Django model from dictionary
Project description
Installation
$ [sudo] pip install django-update-from-dict
Examples
Mixin:
from django.db import models
from django_update_from_dict import update_from_dict, UpdateFromDictMixin
class ClassName(UpdateFromDictMixin,models.Model):
...
instance = ClassName()
instance.update_from_dict(attrs,commit=True)
function:
from django_update_from_dict import update_from_dict
update_from_dict(instance,attrs,commit=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-update-from-dict-2020.12.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 488b22daeb42f29f3ecb9630f5da8eae56965144bb6dea1ce0a339d5a7a83286 |
|
MD5 | 3743d41212e128ec0692f19db693c1ea |
|
BLAKE2b-256 | 35301dffbd870cd0f1c7094b094530284948c6123ce2b8e815538ba1a3ae8659 |