Django-monitor /

Filename Size Date modified Message
64 B
1.6 KB
1.5 KB
3.9 KB
945 B



Moderation seems to be some job each one want to do in their own way. Django-monitor is yet another django-app to help moderate model objects. It was started as a clone of django-gatekeeper project but offers some different features now. The name monitor is just to distinguish it from existing project, django-moderation. (The terms, monitor and moderate are used with same meaning everywhere.)

Here, the moderation process is well integrated with django-admin. That is, all moderation actvities are performed from within the changelist page itself.

Read the detailed documentation from or at the docs/ directory inside the source path to know more about its usage.


Grab the Source

Place it in your path

  • Copy the monitor directory to some place in your python path.

Add to your project

  • Add to your django project by including it in settings.INSTALLED_APPS.


Model-specific permission

Each moderated model will have an associated moderate permission of the form, moderate_<model_name> where <model_name> represents the name of the model. Only those users with that permission will be able to approve or challenge any object created for that model.


Any object created by a user with add permission will have an In Pending status. If the user has got moderate permission also, the object created will automatically get approved (status is Approved).

Moderation from within admin changelist

The changelist view displays an additional column showing current moderation status of each object. Also, you can filter the changelist entries by their moderation status. Three actions, approve, challenge and reset to pending are provided for moderation. The user just need to select the objects, choose appropriate action and press Go to moderate.


The developer can protect the approved objects from further modification to maintain data integrity. The fields which are not meant to be changed after approval can be specified in the model-admin using protected_fields option. The model-admin will club them with readonly_fields if the object is approved.

Basic usage (developers)

  • Register the model for moderation using monitor.nq.


  import monitor
  # Your model here

The documentation describes all supported arguments and their purposes.
  • Inherit the MonitorAdmin instead of ModelAdmin for moderated models. You can make use of protected_fields also if you want to. See the example below:

    # in your
    from monitor.admin import MonitorAdmin
    class YourModelAdmin(MonitorAdmin):
        # Use protected_fields if you want to prevent user from changing some
        #  field values of an approved object. Ignore if not.
        protected_fields = ['field1',]

To Do

  • There should be a facility to lock deletion of approved objects too.
  • There should be a notification area to show counts of pending as well as challenged objects for each moderated model. So user need not routinely check every changelist just to know if there exists entries to be moderated.