use open filter for checke frontend trade
This commit is contained in:
parent
0c99a85361
commit
e4554a9e27
|
@ -503,22 +503,25 @@ class Trade(ActionWithMultipleDevices):
|
|||
date = DateTime(data_key='date', required=False)
|
||||
price = Float(required=False, data_key='price')
|
||||
user_to_email = SanitizedStr(
|
||||
validate=Length(max=STR_SIZE),
|
||||
data_key='userToEmail',
|
||||
validate=Length(max=STR_SIZE),
|
||||
data_key='userToEmail',
|
||||
missing='',
|
||||
required=False
|
||||
)
|
||||
user_to = NestedOn(s_user.User, dump_only=True, data_key='userTo')
|
||||
user_from_email = SanitizedStr(
|
||||
validate=Length(max=STR_SIZE),
|
||||
data_key='userFromEmail',
|
||||
data_key='userFromEmail',
|
||||
missing='',
|
||||
required=False
|
||||
)
|
||||
user_from = NestedOn(s_user.User, dump_only=True, data_key='userFrom')
|
||||
code = SanitizedStr(validate=Length(max=STR_SIZE), data_key='code', required=False)
|
||||
confirm = Boolean(data_key='confirms', missing=False, description="""If you need confirmation of the user
|
||||
you need actevate this field""")
|
||||
confirm = Boolean(
|
||||
data_key='confirms',
|
||||
missing=True,
|
||||
description="""If you need confirmation of the user you need actevate this field"""
|
||||
)
|
||||
lot = NestedOn('Lot',
|
||||
many=False,
|
||||
required=True,
|
||||
|
|
|
@ -150,7 +150,9 @@ class DeviceView(View):
|
|||
)
|
||||
|
||||
def query(self, args):
|
||||
query = Device.query.filter((Device.owner_id == g.user.id)).distinct()
|
||||
query = Device.query.filter().distinct()
|
||||
# import pdb; pdb.set_trace()
|
||||
# query = Device.query.filter((Device.owner_id == g.user.id)).distinct()
|
||||
search_p = args.get('search', None)
|
||||
if search_p:
|
||||
properties = DeviceSearch.properties
|
||||
|
|
Reference in a new issue