From c48371ca2abc06a7a76bafc7dcee0b53a22f48d3 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 7 Apr 2021 17:04:52 -0500 Subject: [PATCH] Make it easier to extend "common" API views --- tailbone/api/common.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tailbone/api/common.py b/tailbone/api/common.py index 0552b68d..c2823ff9 100644 --- a/tailbone/api/common.py +++ b/tailbone/api/common.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2020 Lance Edgar +# Copyright © 2010-2021 Lance Edgar # # This file is part of Rattail. # @@ -111,6 +111,10 @@ class CommonView(APIView): @classmethod def defaults(cls, config): + cls._common_defaults(config) + + @classmethod + def _common_defaults(cls, config): # about about = Service(name='about', path='/about')