mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
25 lines
689 B
Python
25 lines
689 B
Python
from configurations import Configuration
|
|
|
|
|
|
class Mixin1(object):
|
|
|
|
@property
|
|
def TEMPLATE_CONTEXT_PROCESSORS(self):
|
|
return super(Mixin1, self).TEMPLATE_CONTEXT_PROCESSORS + (
|
|
'some_app.context_processors.processor1',)
|
|
|
|
|
|
class Mixin2(object):
|
|
|
|
@property
|
|
def TEMPLATE_CONTEXT_PROCESSORS(self):
|
|
return super(Mixin2, self).TEMPLATE_CONTEXT_PROCESSORS + (
|
|
'some_app.context_processors.processor2',)
|
|
|
|
|
|
class Inheritance(Mixin2, Mixin1, Configuration):
|
|
|
|
@property
|
|
def TEMPLATE_CONTEXT_PROCESSORS(self):
|
|
return super(Inheritance, self).TEMPLATE_CONTEXT_PROCESSORS + (
|
|
'some_app.context_processors.processorbase',)
|