AttributeError when searching for "precise"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charmworld |
Fix Released
|
Critical
|
Curtis Hovey |
Bug Description
While QAing changes to search indexing I saw a 500 when I searched for "precise":
Traceback (most recent call last):
...
File "/home/
raise exc
AttributeError: AttributeError
- Expression: "hit['data'
- Filename: /home/webops_
- Location: (31:19)
- Source: <a href="$
- Expression: "${hit[
- Filename: /home/webops_
- Location: (31:17)
- Source: <a href="$
Related branches
- Curtis Hovey (community): Approve (code)
- Benji York (community): Approve
-
Diff: 136 lines (+31/-10)2 files modifiedcharmworld/models.py (+7/-3)
charmworld/tests/test_models.py (+24/-7)
Changed in charmworld: | |
status: | In Progress → Fix Committed |
Changed in charmworld: | |
status: | Fix Committed → Fix Released |
This issue appears in r355. The problem is that the template presumes that the search dicts are sane. Only the models are sane,