1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Enable get view tests for organizational objects

This commit is contained in:
Jeremy Stretch
2021-03-26 15:15:59 -04:00
parent 2820d26a0f
commit 981e7017bb
2 changed files with 1 additions and 10 deletions

View File

@ -235,11 +235,6 @@ class ObjectChangeLogView(View):
# fall back to using base.html.
if self.base_template is None:
self.base_template = f"{model._meta.app_label}/{model._meta.model_name}.html"
# TODO: This can be removed once an object view has been established for every model.
try:
template.loader.get_template(self.base_template)
except template.TemplateDoesNotExist:
self.base_template = 'base.html'
return render(request, 'extras/object_changelog.html', {
'object': obj,
@ -368,11 +363,6 @@ class ObjectJournalView(View):
# fall back to using base.html.
if self.base_template is None:
self.base_template = f"{model._meta.app_label}/{model._meta.model_name}.html"
# TODO: This can be removed once an object view has been established for every model.
try:
template.loader.get_template(self.base_template)
except template.TemplateDoesNotExist:
self.base_template = 'base.html'
return render(request, 'extras/object_journal.html', {
'object': obj,