Database performance
* optimizes the db fetching for all index views and detail views * introduces usage of managers.py in all necessary apps for wrapping basic fetch settings * moves comment.html to comment_card.html under /konova/templates/konova/ * adds/updates translations * fixes document typos * drops comment rendering in public reports * opens public reports in new tabs if button is clicked from the detail view
This commit is contained in:
@@ -117,7 +117,7 @@ class InterventionTable(BaseTable):
|
||||
return format_html(html)
|
||||
|
||||
def render_r(self, value, record: Intervention):
|
||||
""" Renders the registered column for an intervention
|
||||
""" Renders the recorded column for an intervention
|
||||
|
||||
Args:
|
||||
value (str): The identifier value
|
||||
@@ -141,7 +141,7 @@ class InterventionTable(BaseTable):
|
||||
return format_html(html)
|
||||
|
||||
def render_e(self, value, record: Intervention):
|
||||
""" Renders the registered column for an intervention
|
||||
""" Renders the editable column for an intervention
|
||||
|
||||
Args:
|
||||
value (str): The identifier value
|
||||
@@ -152,7 +152,7 @@ class InterventionTable(BaseTable):
|
||||
"""
|
||||
html = ""
|
||||
has_access = value.filter(
|
||||
username=self.user.username
|
||||
id=self.user.id
|
||||
).exists()
|
||||
|
||||
html += self.render_icn(
|
||||
|
||||
Reference in New Issue
Block a user