From 5a10b06e119dbee402023da5594b6c7ce2353220 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Fri, 17 Jun 2022 16:59:20 +0530 Subject: [PATCH] feat & chore: list logged in user in nav & linting --- Makefile | 2 ++ dash/apps.py | 4 ++-- .../dash/common/components/secondary-nav.html | 2 +- dash/tests.py | 9 ++++++--- dash/urls.py | 4 +--- dash/views.py | 14 +++++++++++--- 6 files changed, 23 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 764a38c..1055e7a 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,8 @@ help: ## Prints help for targets with comments lint: ## Run linter @./venv/bin/black ./dashboard/* @./venv/bin/black ./accounts/* + @./venv/bin/black ./dash/* + @./venv/bin/black ./support/* migrate: ## Run migrations $(call run_migrations) diff --git a/dash/apps.py b/dash/apps.py index 51fd062..efbebea 100644 --- a/dash/apps.py +++ b/dash/apps.py @@ -2,5 +2,5 @@ from django.apps import AppConfig class DashConfig(AppConfig): - default_auto_field = 'django.db.models.BigAutoField' - name = 'dash' + default_auto_field = "django.db.models.BigAutoField" + name = "dash" diff --git a/dash/templates/dash/common/components/secondary-nav.html b/dash/templates/dash/common/components/secondary-nav.html index 274868a..e3310c5 100644 --- a/dash/templates/dash/common/components/secondary-nav.html +++ b/dash/templates/dash/common/components/secondary-nav.html @@ -1,7 +1,7 @@