pull/62/head
Andrew Godwin 2022-11-26 12:24:38 -07:00
rodzic db88c733b4
commit 98cd3f5b0f
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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"

Wyświetl plik

@ -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):