Skip to content

Commit

Permalink
add sql generators, add model and admin mixins for missing value report
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Aug 24, 2024
1 parent a922ba9 commit c8db9a4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def dashboard(self, obj=None, label=None) -> str:
f"{self.project_subject_admin}:{obj.label_lower.replace('.', '_')}_change",
args=(obj.original_id,),
)
url = f"{url}?next={self.project_reports_admin}:{self.model._meta.label_lower.replace('.', '_')}_changelist"
url = (
f"{url}?next={self.project_reports_admin}:"
f"{self.model._meta.label_lower.replace('.', '_')}_changelist"
)
context = dict(title=_("Go to CRF"), url=url, label=label)
return render_to_string("dashboard_button.html", context=context)

Expand Down

0 comments on commit c8db9a4

Please sign in to comment.