#4465 (Custom search objects (TableRow) with custom search table (VirtualTable))
by Sharif Mehedi · in Developers · assigned to Sharif Mehedi
Summary
The actual idea is stated [url jane.mylino.net/#/api/comments/RecentComments/7595 here].
Children
Comments
- 4 years, 6 months ago by Sharif Mehedi about #4465 (Custom search objects (TableRow) with custom search table (VirtualTable)) : And the question is, how can we manage atomizer(s) for ReverseRelatedManager(s)?
- 4 years, 6 months ago by Sharif Mehedi about #4465 (Custom search objects (TableRow) with custom search table (VirtualTable)) : using double underscore (__) aggregates in Model.quick_search_fields does NOT know what to do in case the name points to a ReverseRelatedManager.
- 4 years, 6 months ago by Sharif Mehedi about #4465 (Custom search objects (TableRow) with custom search table (VirtualTable)) : Also django search only works with postgres, which is certainly a drawback.
- 4 years, 6 months ago by Sharif Mehedi about #4465 (Custom search objects (TableRow) with custom search table (VirtualTable)) : See: [url docs.djangoproject.com/en/4.0/topics/db/search/]
- 4 years, 6 months ago by Sharif Mehedi about #4465 (Custom search objects (TableRow) with custom search table (VirtualTable)) : Another thought, should we use django search functionalities? which gives us like, n-gram, ranking these sort of advance funtionalities. A [url github.com/8lurry/heartbeat/blob/master/hosman_web/search.py script] that I wrote as a novice, NOT that this script has anything to do with our current stat...
- 4 years, 6 months ago by Sharif Mehedi about #4465 (Custom search objects (TableRow) with custom search table (VirtualTable)) : At the moment there exist NO table level permission management, permission managements are done in request, action and obj level. Would it not be a good idea to also have permission management in table level.
- 4 years, 6 months ago by Sharif Mehedi about #4465 (Custom search objects (TableRow) with custom search table (VirtualTable)) : `get_view_permission` by default always returns true. Should we customize it to look at the required_roles?
- 4 years, 6 months ago by Luc Saffre about #4465 (Custom search objects (TableRow) with custom search table (VirtualTable)) : We do have a method Model.as_list_item() and we have Table.items_layout. In non-customized display_mode list, Lino currently just displays a one-liner. It should be straghtforward for the app dev to customize.
- 4 years, 6 months ago by Luc Saffre about #4465 (Custom search objects (TableRow) with custom search table (VirtualTable)) : There should be one place for the app dev where they can say how one row of a model should look like in (a) display_mode "list" and (b) when being shown in SiteSearch.