Tweak label formatter instantiation, per rattail changes.

This commit is contained in:
Lance Edgar 2015-08-17 12:39:26 -05:00
parent f5b22b1256
commit 078e2c5471

View file

@ -87,7 +87,7 @@ class ProfilesView(MasterView):
def after_edit(self, profile):
if not profile.format:
formatter = profile.get_formatter()
formatter = profile.get_formatter(self.rattail_config)
if formatter:
try:
profile.format = formatter.default_format