From 99776b28d7166a75ef2df59ad83f49dbb70848fe Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 10 Feb 2017 10:04:45 -0600 Subject: [PATCH] Tweak renderer for Amount field for DepositLink view --- tailbone/views/depositlinks.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tailbone/views/depositlinks.py b/tailbone/views/depositlinks.py index 0d08239c..d76a5518 100644 --- a/tailbone/views/depositlinks.py +++ b/tailbone/views/depositlinks.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2016 Lance Edgar +# Copyright © 2010-2017 Lance Edgar # # This file is part of Rattail. # @@ -28,6 +28,7 @@ from __future__ import unicode_literals, absolute_import from rattail.db import model +from tailbone import forms from tailbone.views import MasterView @@ -38,10 +39,13 @@ class DepositLinksView(MasterView): model_class = model.DepositLink url_prefix = '/deposit-links' - def configure_grid(self, g): + def _preconfigure_grid(self, g): g.filters['description'].default_active = True g.filters['description'].default_verb = 'contains' g.default_sortkey = 'code' + g.amount.set(renderer=forms.renderers.CurrencyFieldRenderer) + + def configure_grid(self, g): g.configure( include=[ g.code,