diff options
author | Andrew Godwin | 2022-11-26 12:24:38 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-26 12:24:38 -0700 |
commit | 98cd3f5b0fb40bdded4220069e1c5e75cb246024 (patch) | |
tree | 103c60e7ffd4a54c464bf5873183633f7a20e08e | |
parent | db88c733b4ea910cd37d97453d49b7b24f767dda (diff) | |
download | takahe-98cd3f5b0fb40bdded4220069e1c5e75cb246024.tar.gz takahe-98cd3f5b0fb40bdded4220069e1c5e75cb246024.tar.bz2 takahe-98cd3f5b0fb40bdded4220069e1c5e75cb246024.zip |
Fix tests
-rw-r--r-- | .github/workflows/test.yml | 2 | ||||
-rw-r--r-- | users/admin.py | 1 |
2 files changed, 2 insertions, 1 deletions
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): |