Django validate what user sends from admin panel
<p>I am kind of new to Django, and i am trying to make sort of a news website where users can submit articles(with an account) but the admin needs to check them before they can be posted. Is that possible?</p>

<p>Yes, it is. </p>

<p>The simplest approach would be creating simple flag in model let's say a Boolean field named <code>verified</code>, which by default would be False. You could add permissions. So in the end you could overwrite a function in your admin form, and show the field for superuser only.</p>

<pre><code>class MyUserAdmin(admin.ModelAdmin):

def get_form(self, request, obj=None, **kwargs):

        self.exclude = []
        if not request.user.is_superuser:
            self.exclude.append('Permissions') #here!
        return super(MyUserAdmin, self).get_form(request, obj, **kwargs)
</code></pre>

python django frameworks website