djangosnippets.org: Latest snippets tagged with 'patch'http://djangosnippets.org/tags/patch/2012-05-26T22:48:23.189925-05:00PatchModelForm - A ModelForm subclass with the semantics of the PATCH HTTP method
2012-05-26T22:48:23.189925-05:00gnrfanhttp://djangosnippets.org/snippets/2758/<p>Use this class to partially update one or more fields of a model. Only the fields that are bound to the form via the "data" parameter in the constructor get updated. All automatically generated fields have their "required" attribute set to False.</p>
<p>Example 1:</p>
<pre><code>from django.contrib.auth.models import User
class PatchUserForm(PatchModelForm): …</code></pre>
Freely redistributableTestserver: --noinput option, sending a signal
2010-06-18T09:50:02.642874-05:00mpasternackihttp://djangosnippets.org/snippets/2071/<p>Makes manage.py testserver accept a <code>--noinput</code> argument to delete test database without asking if it already exists; makes it emit <code>django.core.management.commands.testserver.testserver_setup</code> signal after fixtures are loaded and before server itself is started to allow custom postprocessing.</p>
Freely redistributableoracle 10g fulltext search & patch nclob field limitations
2008-04-05T02:59:10.828795-05:00ageldamahttp://djangosnippets.org/snippets/685/<p>save as some module,
import then, call 'patch()' in somewhere suchs urls.py...</p>
Freely redistributable