Skip to content

Commit dc3b70f

Browse files
authored
Merge pull request #55 from dougvanhorn/master
Fix MDN admin search, add missing `message` relation.
2 parents 59cebe6 + 502425c commit dc3b70f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ Contribute
8787
Running Tests
8888
~~~~~~~~~~~~~
8989

90+
Install `django-environ` and `pytest` into your environment to support the
91+
example.settings module and test framework.
92+
9093
To run ``django-pyas2's`` test suite:
9194

9295
``django-admin.py test pyas2 --settings=example.settings --pythonpath=.``

pyas2/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def has_add_permission(self, request):
186186

187187
search_fields = (
188188
"mdn_id",
189-
"message_id",
189+
"message__message_id",
190190
)
191191
list_display = ("mdn_id", "message", "timestamp", "status")
192192
list_filter = ("status",)

0 commit comments

Comments
 (0)