mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-24 17:02:18 +00:00
Filter asset audit list by never-audited
This commit is contained in:
@@ -186,9 +186,12 @@ class AssetEmbed(AssetDetail):
|
|||||||
@method_decorator(csrf_exempt, name='dispatch')
|
@method_decorator(csrf_exempt, name='dispatch')
|
||||||
class AssetAuditList(AssetList):
|
class AssetAuditList(AssetList):
|
||||||
template_name = 'asset_audit_list.html'
|
template_name = 'asset_audit_list.html'
|
||||||
|
hide_hidden_status = False
|
||||||
|
|
||||||
def form_valid(self):
|
# TODO Refresh this when the modal is submitted
|
||||||
print('test')
|
def get_queryset(self):
|
||||||
|
self.form = forms.AssetSearchForm(data={})
|
||||||
|
return self.model.objects.filter(Q(last_audited_at__isnull=True))
|
||||||
|
|
||||||
class AssetAudit(AssetEdit):
|
class AssetAudit(AssetEdit):
|
||||||
template_name = 'asset_audit.html'
|
template_name = 'asset_audit.html'
|
||||||
|
|||||||
Reference in New Issue
Block a user