# 83 Publication rework EMA

* adds is_ready_for_publish implementation for EMA
This commit is contained in:
2022-01-21 09:15:06 +01:00
parent b72426e20f
commit e73b42db7b
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -464,7 +464,7 @@ def report_view(request:HttpRequest, id: str):
tab_title = _("Report {}").format(ema.identifier)
# If intervention is not recorded (yet or currently) we need to render another template without any data
if not ema.recorded:
if not ema.is_ready_for_publish():
template = "report/unavailable.html"
context = {
TAB_TITLE_IDENTIFIER: tab_title,