Add new-style config defaults for BrandView

This commit is contained in:
Lance Edgar 2022-07-18 12:31:54 -05:00
parent c6df827311
commit d16290cb70

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2021 Lance Edgar
# Copyright © 2010-2022 Lance Edgar
#
# This file is part of Rattail.
#
@ -135,5 +135,12 @@ class BrandView(MasterView):
self.Session.delete(removing)
def includeme(config):
def defaults(config, **kwargs):
base = globals()
BrandView = kwargs.get('BrandView', base['BrandView'])
BrandView.defaults(config)
def includeme(config):
defaults(config)