djangosnippets.org: Latest snippets tagged with 'values'https://djangosnippets.org/tags/values/2008-07-01T15:36:48.165773-05:00Class ModelInfo for show object info
2008-07-01T15:36:48.165773-05:00marinhohttps://djangosnippets.org/snippets/843/<p>This class works in compatibility with a ModelForm, but instead of show a form, it shows the field values.</p>
<p>The Meta class attributes can be used to customize fields to show, to be excluded, to divide by sections, to urlize text fields, etc.</p>
<p><strong>Example 1:</strong></p>
<pre><code>class InfoSingleCertificate(ModelInfo):
class Meta:
model …</code></pre>
Freely redistributable