mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
FIX: Correct template for AssetVersionHistory
This commit is contained in:
@@ -213,8 +213,9 @@ class SupplierVersionHistory(versioning.VersionHistory):
|
|||||||
template_name = "asset_version_history.html"
|
template_name = "asset_version_history.html"
|
||||||
|
|
||||||
|
|
||||||
# TODO: Reduce SQL queries
|
|
||||||
class AssetVersionHistory(versioning.VersionHistory):
|
class AssetVersionHistory(versioning.VersionHistory):
|
||||||
|
template_name = "asset_version_history.html"
|
||||||
|
|
||||||
def get_object(self, **kwargs):
|
def get_object(self, **kwargs):
|
||||||
return get_object_or_404(models.Asset, asset_id=self.kwargs['pk'])
|
return get_object_or_404(models.Asset, asset_id=self.kwargs['pk'])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user