djangosnippets.org: Latest snippets posted by HMhttps://djangosnippets.org/users/HM/2009-03-21T08:29:00.605753-05:00HMPaginator Tag for 1.x
2009-03-21T08:29:00.605753-05:00HMhttps://djangosnippets.org/snippets/1388/<p>This is a <a href="http://www.djangosnippets.org/snippets/73/">Paginator Tag</a> for 1.x. Since the context is less overfull, the template, paginator.html, needs more logic.</p>
<p>Put the tag in your templatetags and the template at the root of a template-directory.</p>
<p>The tag will work out of the box in a generic view, other views must provide …</p>
Freely redistributableReorder fields directly in the ModelForm
2008-05-16T06:44:32.617956-05:00HMhttps://djangosnippets.org/snippets/759/<p>Sometimes the order of the fields you get from a model needs to be adjusted when displaying its modelform. If it's just a few fields you can do it in the template, but what if you want to iterate over the form?</p>
<p>The fields are stored in a SortedDict, so …</p>
Freely redistributable