Skip to content

Admin

hypha.apply.activity.admin

MessageInline

Bases: TabularInline

model class-attribute instance-attribute

model = Message

readonly_fields class-attribute instance-attribute

readonly_fields = ('type', 'recipient', 'content', 'status', 'external_id')

can_delete class-attribute instance-attribute

can_delete = False

has_add_permission

has_add_permission(request, obj)
Source code in hypha/apply/activity/admin.py
def has_add_permission(self, request, obj):
    return False

EventAdmin

Bases: ModelAdmin

list_display class-attribute instance-attribute

list_display = ('type', 'by', 'when', 'source')

list_filter class-attribute instance-attribute

list_filter = ('type', 'when')

readonly_fields class-attribute instance-attribute

readonly_fields = ('type', 'source', 'when', 'by')

inlines class-attribute instance-attribute

inlines = (MessageInline)

has_add_permission

has_add_permission(request)
Source code in hypha/apply/activity/admin.py
def has_add_permission(self, request):
    return False

has_delete_permission

has_delete_permission(*args)
Source code in hypha/apply/activity/admin.py
def has_delete_permission(self, *args):
    return False