diff --git a/apps/assets/views/asset.py b/apps/assets/views/asset.py index 0de933395..b6232436e 100644 --- a/apps/assets/views/asset.py +++ b/apps/assets/views/asset.py @@ -191,7 +191,7 @@ class AssetDetailView(DetailView): class AssetExportView(View): def get(self, request): spm = request.GET.get('spm', '') - assets_id_default = [Asset.objects.first().id] if Asset.objects.first() else [1] + assets_id_default = [Asset.objects.first().id] if Asset.objects.first() else [] assets_id = cache.get(spm, assets_id_default) fields = [ field for field in Asset._meta.fields