Admin

We have a MinipubAdmin class that basically gives you the code for displaying 2 fieldsets:

  1. The fieldset that controls publication:
../_images/minipub-fieldset.png
  1. And the ‘status’ fieldset; these fields are read-only, and exist just for information:
../_images/minipub-status-fieldset.png

And here is an example of using them:

from minipub.admin import MinipubAdmin

class ArticleAdmin(MinipubAdmin):

# Other code...

fieldsets = (
    (None, {
        'fields': ('some', 'other', 'fields',)
    }),
    MinipubAdmin.PUBLICATION_FIELDSET,
    MinipubAdmin.TIMESTAMP_FIELDSET
)