Refactor asset audit tests with better selectors

Also fixed a silly title error with the modal
This commit is contained in:
2021-01-26 15:08:51 +00:00
parent e3fc05772e
commit 8c5b2f426d
4 changed files with 15 additions and 6 deletions

View File

@@ -211,6 +211,11 @@ class AssetAudit(AssetEdit):
template_name = 'asset_audit.html'
form_class = forms.AssetAuditForm
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["page_title"] = "Audit Asset: {}".format(self.object.display_id)
return context
def get_success_url(self):
# TODO For some reason this doesn't stick when done in form_valid??
asset = self.get_object()