djangosnippets.org: Latest snippets posted by brunobordhttps://djangosnippets.org/users/brunobord/2008-06-27T03:41:44.470215-05:00brunobordExport Models
2008-06-27T03:41:44.470215-05:00brunobordhttps://djangosnippets.org/snippets/825/<p>Warning: This python script is designed for Django 0.96.</p>
<p>It exports data from models quite like the <code>dumpdata</code> command, and throws the
data to the standard output.</p>
<p>It fixes glitches with unicode/ascii characters. It looked like the 0.96
handles very badly unicode characters, unless you specify an argument that is …</p>
Freely redistributablemark a required field by "*" in a template
2007-11-20T08:41:24.163059-06:00brunobordhttps://djangosnippets.org/snippets/474/<p>the trick resides in <code>field.field.required</code>. The intuitive way of testing this in the templates is to access <code>field.required</code>. But it's not the good one. Enjoy!</p>
<p><a href="http://groups.google.com/group/django-users/browse_thread/thread/ce83f74fb1156b4b/0df36947de16a071?lnk=gst&q=required+field#0df36947de16a071">Found via Django users Google Groups</a></p>
Freely redistributable