From 82a636956894ca651f3ff723e7d955347edb2d98 Mon Sep 17 00:00:00 2001 From: ibuler Date: Tue, 22 Oct 2019 15:38:49 +0800 Subject: [PATCH] =?UTF-8?q?[Update]=20=E4=BF=AE=E6=94=B9term=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/backends/manager.py | 2 + apps/ops/templates/ops/celery_task_log.html | 5 ++- .../ops/command_execution_create.html | 44 +------------------ apps/perms/urls/api_urls.py | 18 ++++---- 4 files changed, 17 insertions(+), 52 deletions(-) diff --git a/apps/assets/backends/manager.py b/apps/assets/backends/manager.py index 75b9c38b8..ac81307df 100644 --- a/apps/assets/backends/manager.py +++ b/apps/assets/backends/manager.py @@ -67,6 +67,8 @@ class AssetUserManager: return AssetUserQuerySet(instances) def get(self, username, asset, **kwargs): + print(username) + print(asset) instances = self.filter(username, assets=[asset], **kwargs) if len(instances) == 1: return instances[0] diff --git a/apps/ops/templates/ops/celery_task_log.html b/apps/ops/templates/ops/celery_task_log.html index 8e99c356d..c7f177c6e 100644 --- a/apps/ops/templates/ops/celery_task_log.html +++ b/apps/ops/templates/ops/celery_task_log.html @@ -4,6 +4,7 @@ {% trans 'Task log' %} +