Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#26002 closed Cleanup/optimization (fixed)

Improve ModelAdmin.get_search_results() example

Reported by: Tim Graham Owned by: Bozidar Benko
Component: Documentation Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

There are two main issues:

  • Clarify why the current example is the way it is instead of simply listing 'age' in search_fields.
  • Add other use cases like plugging in Solr or Haystack results, or defining some custom search operators (+, -, *, @, ...)

discussion on a pull request.

Change History (7)

comment:1 by Bozidar Benko, 8 years ago

Owner: changed from nobody to Bozidar Benko
Status: newassigned

comment:2 by Tim Graham, 8 years ago

Has patch: set

comment:3 by Tim Graham, 8 years ago

Simpler PR to explain the current example.

comment:4 by Berker Peksag, 8 years ago

Triage Stage: AcceptedReady for checkin

comment:5 by GitHub <noreply@…>, 8 years ago

Resolution: fixed
Status: assignedclosed

In c9d0a0f7:

Fixed #26002 -- Explained ModelAdmin.get_search_results() example.

comment:6 by Tim Graham <timograham@…>, 8 years ago

In 96870045:

[1.10.x] Fixed #26002 -- Explained ModelAdmin.get_search_results() example.

Backport of c9d0a0f7f47c8496a9d8b0cfda94e2ef118d9ab3 from master

comment:7 by Tim Graham <timograham@…>, 8 years ago

In fe663b3d:

[1.9.x] Fixed #26002 -- Explained ModelAdmin.get_search_results() example.

Backport of c9d0a0f7f47c8496a9d8b0cfda94e2ef118d9ab3 from master

Note: See TracTickets for help on using tickets.
Back to Top