From 98cd3f5b0fb40bdded4220069e1c5e75cb246024 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 26 Nov 2022 12:24:38 -0700 Subject: [PATCH] Fix tests --- .github/workflows/test.yml | 2 +- users/admin.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 05e3b42..e62604e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: python -m pip install -r requirements-dev.txt - name: Run pytest env: - TAKAHE_DATABASE_URL: "postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres" + TAKAHE_DATABASE_SERVER: "postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres" TAKAHE_ENVIRONMENT: "test" TAKAHE_SECRET_KEY: "testing_secret" TAKAHE_MAIN_DOMAIN: "example.com" diff --git a/users/admin.py b/users/admin.py index 7a54c52..f0d484d 100644 --- a/users/admin.py +++ b/users/admin.py @@ -68,6 +68,7 @@ class InboxMessageAdmin(admin.ModelAdmin): list_display = ["id", "state", "state_attempted", "message_type", "message_actor"] search_fields = ["message"] actions = ["reset_state"] + readonly_fields = ["state_changed"] @admin.action(description="Reset State") def reset_state(self, request, queryset):