From 4eebd454d547e8b01f72e90e271a7e3bdcde49a1 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 4 Apr 2020 19:30:37 -0500 Subject: [PATCH] Declare sort order for `Appliance.probes` relationship --- rattail_tempmon/db/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rattail_tempmon/db/model.py b/rattail_tempmon/db/model.py index 985de17..160de00 100644 --- a/rattail_tempmon/db/model.py +++ b/rattail_tempmon/db/model.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2018 Lance Edgar +# Copyright © 2010-2020 Lance Edgar # # This file is part of Rattail. # @@ -178,6 +178,7 @@ class Probe(Base): """, backref=orm.backref( 'probes', + order_by='Probe.description', doc=""" List of probes which monitor this appliance. """))