djangosnippets.org: Latest snippets tagged with 'integrity'https://djangosnippets.org/tags/integrity/2007-11-22T07:52:01.455337-06:00Update only selected model fields
2007-11-22T07:52:01.455337-06:00jcrochollhttps://djangosnippets.org/snippets/479/<p>Watch out! Previous versions of this snippet (without the values list) were vulnerable to SQL injection attacks. The "correct" solution is probably to wait until <a href="http://code.djangoproject.com/ticket/4102">ticket 4102</a> hits the trunk. But here's my temporary fix while we wait for that happy day.</p>
<p>Django's model.save() method is a PITA:</p>
<ol>
<li>It does …</li></ol>
Freely redistributable