Admin
hypha.apply.projects.admin
¶
DocumentCategoryAdmin
¶
Bases: ModelAdmin
ContractDocumentCategoryAdmin
¶
Bases: ModelAdmin
ProjectFormAdmin
¶
Bases: ListRelatedMixin
, ModelAdmin
ProjectSOWFormAdmin
¶
Bases: ListRelatedMixin
, ModelAdmin
ProjectReportFormAdmin
¶
Bases: ListRelatedMixin
, ModelAdmin
create_view_class
class-attribute
instance-attribute
¶
create_view_class = CreateProjectReportFormView
related_models
class-attribute
instance-attribute
¶
related_models = [('applicationbaseprojectreportform', 'application'), ('labbaseprojectreportform', 'lab')]
get_queryset
¶
ProjectSettingsAdmin
¶
Bases: SettingModelAdmin
Don't allow initialization unless self.model is set to a valid model
Source code in hypha/core/wagtail/admin/options.py
permission_helper
instance-attribute
¶
get_menu_item
¶
get_admin_urls_for_registration
¶
get_permission_helper_class
¶
Returns a permission_helper class to help with permission-based logic for the given model.
Copied from the wagtail's ModelAdmin
Source code in hypha/core/wagtail/admin/options.py
get_permissions_for_registration
¶
Utilised by Wagtail's 'register_permissions' hook to allow permissions for a model to be assigned to groups in settings. This is only required if the model isn't a Page model, and isn't registered as a Snippet
Copied from the wagtail's ModelAdmin
Source code in hypha/core/wagtail/admin/options.py
ProjectAdminGroup
¶
Bases: ModelAdminGroup
items
class-attribute
instance-attribute
¶
items = (ContractDocumentCategoryAdmin, DocumentCategoryAdmin, ProjectFormAdmin, ProjectReportFormAdmin, ProjectSOWFormAdmin, ProjectSettingsAdmin)