Fix tests
This commit is contained in:
parent
db88c733b4
commit
98cd3f5b0f
|
@ -29,7 +29,7 @@ jobs:
|
||||||
python -m pip install -r requirements-dev.txt
|
python -m pip install -r requirements-dev.txt
|
||||||
- name: Run pytest
|
- name: Run pytest
|
||||||
env:
|
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_ENVIRONMENT: "test"
|
||||||
TAKAHE_SECRET_KEY: "testing_secret"
|
TAKAHE_SECRET_KEY: "testing_secret"
|
||||||
TAKAHE_MAIN_DOMAIN: "example.com"
|
TAKAHE_MAIN_DOMAIN: "example.com"
|
||||||
|
|
|
@ -68,6 +68,7 @@ class InboxMessageAdmin(admin.ModelAdmin):
|
||||||
list_display = ["id", "state", "state_attempted", "message_type", "message_actor"]
|
list_display = ["id", "state", "state_attempted", "message_type", "message_actor"]
|
||||||
search_fields = ["message"]
|
search_fields = ["message"]
|
||||||
actions = ["reset_state"]
|
actions = ["reset_state"]
|
||||||
|
readonly_fields = ["state_changed"]
|
||||||
|
|
||||||
@admin.action(description="Reset State")
|
@admin.action(description="Reset State")
|
||||||
def reset_state(self, request, queryset):
|
def reset_state(self, request, queryset):
|
||||||
|
|
Loading…
Reference in New Issue