Allow the home page to include quickie search
make it easier for any "non-master" view to do so
This commit is contained in:
parent
4c3b189108
commit
3a6ced388a
3 changed files with 29 additions and 8 deletions
|
@ -41,7 +41,6 @@ from sqlalchemy_utils.functions import get_primary_keys, get_columns
|
|||
|
||||
from rattail.db import model, Session as RattailSession
|
||||
from rattail.db.continuum import model_transaction_query
|
||||
from rattail.core import Object
|
||||
from rattail.util import prettify, OrderedDict, simple_error
|
||||
from rattail.time import localtime
|
||||
from rattail.threads import Thread
|
||||
|
@ -105,7 +104,6 @@ class MasterView(View):
|
|||
|
||||
# quickie (search)
|
||||
supports_quickie_search = False
|
||||
expose_quickie_search = False
|
||||
|
||||
# set to True to declare model as "contact"
|
||||
is_contact = False
|
||||
|
@ -2327,11 +2325,7 @@ class MasterView(View):
|
|||
}
|
||||
|
||||
if self.expose_quickie_search:
|
||||
context['quickie'] = Object(
|
||||
url=self.get_quickie_url(),
|
||||
perm=self.get_quickie_perm(),
|
||||
placeholder=self.get_quickie_placeholder(),
|
||||
)
|
||||
context['quickie'] = self.get_quickie_context()
|
||||
|
||||
if self.grid_index:
|
||||
context['grid_count'] = self.grid_count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue