Do not show certain fields in admin page
<p>In Django, you get the model editor for free in the <code>admin/</code> pages. This all works fine, but I have a few fields in my models that are generated and should never be touched by anybody through a form.</p>

<p>How can I exclude them from these <code>admin/.../change/</code> forms?</p>

<p>I added exclude to the <code>ModelAdmin</code>:</p>

<pre><code>class exampleAdmin(admin.ModelAdmin):
    exclude = ('field',)

class example(models.Model):
    field = models.CharField(max_length = 100)
</code></pre>

<p>You have to <code>register</code> your <code>exampleAdmin</code> to take effect. In your <code>admin.py</code> add <code>admin.site.register(example, exampleAdmin)</code></p>

python django