Application ENA¶
The ENA application contains the pages to submit in ENA database.
Key files of the « ENA » application¶
admin.py¶
- class apps.ena.admin.ena_submissionAdmin(model, admin_site)¶
- has_add_permission(request)¶
Return True if the given request has permission to add an object. Can be overridden by the user in subclasses.
- has_delete_permission(request, obj=None)¶
Return True if the given request has permission to change the given Django model instance, the default implementation doesn’t examine the obj parameter.
Can be overridden by the user in subclasses. In such case it should return True if the given request has permission to delete the obj model instance. If obj is None, this should return True if the given request has permission to delete any object of the given type.
model.py¶
- class apps.ena.models.ENATeamProfile(*args, **kwargs)¶
ENA team profile table
- exception DoesNotExist¶
- exception MultipleObjectsReturned¶
test.py¶
view.py¶
- apps.ena.views.enaProfile(request, test=False)¶
Render profile template