Admin¶
We have a MinipubAdmin
class that basically gives you the code for displaying 2
fieldsets:
- The fieldset that controls publication:
- And the ‘status’ fieldset; these fields are read-only, and exist just for information:
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
)